Link error /Build/Products/Debug-iphonesimulator file not found

前端 未结 9 2011
名媛妹妹
名媛妹妹 2021-02-18 18:22

I have problem with Xcode, keeps giving me a linker error, and it doesn\'t build the project. The following is the error am getting

ld: file not found:

相关标签:
9条回答
  • 2021-02-18 18:42

    Make a deep clean of your project by ⌘ Clean (Menu >> Product >> Clean)

    0 讨论(0)
  • 2021-02-18 18:47

    As some of the fellow developers have mentioned here, the root cause of the error was "Change in Product Name". I fixed it by :

    1. Go to [project]Tests -> general

    2. Select Host Application

    Credits : https://stackoverflow.com/a/28906400/2164029

    0 讨论(0)
  • 2021-02-18 18:50

    I got this fixed by selecting the Tests target and searching for Bundle Loader in Build Settings and changing the product name in that path. I got this error because I have changed the Product name. The Bundle loader has the old product name in the path, so it searches for that path.

    0 讨论(0)
  • 2021-02-18 18:51

    I found the solution, I have removed what ever was in dependency. Build Phases -> target dependancies remove whatever in there. if there's test target also click on the test in the build phases in the target dependancies remove what ever in there.

    0 讨论(0)
  • 2021-02-18 18:57

    I got the same issue. What I did was to look for a different 'Product Name' listed under Build Settings. I found the old Product Name still listed under Packaging (Both the Product Name and Product Module Name had the old name). I changed it to the new one and the project compiled without error.

    0 讨论(0)
  • 2021-02-18 19:00

    I solved by running pod deintegrate https://github.com/CocoaPods/cocoapods-deintegrate:

    pod deintegrate

    pod install

    0 讨论(0)
提交回复
热议问题