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

前端 未结 9 2081
名媛妹妹
名媛妹妹 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 19:04

    I picked up a project that had this same error. I found that the project name had changed, but the code I had did not reflect that change in the project build settings. To correct, I updated the "Product Name" value (found under targets | Packaging) to the correct value and rebuilt the project. Ran fine.

    0 讨论(0)
  • I had the exact same problem and if you are using cocoapods make sure you open your project with .xcworkspace not .xcodeproj, for me it was that simple.

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

    I ended up resolving this in Xcode 7.3 by deleting the Bundle Loader values under Build Settings. Seemed risky, but I noticed the other targets didn't have any such values defined; only the test targets (which were failing to build due to this error).

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