Xcode 7: linker command failed with exit code 1 (u

2020-03-13 06:56发布

问题:

Im testing my app on iOS simulator of Xcode 7 and its all right o, but when i try test in my iOSDevice (a iPhone 5S with iOS 9). I updated the xcode 7 and iOS9 today (09/16/2015) and before that with iOS 8.4 was working fine.

OBS: The iOS Deployment target on Xcode project is iOS 9.

I already try this: http://twobitlabs.com/2011/06/adding-ocunit-to-an-existing-ios-project-with-xcode-4/ like suggested in this post: clang: error: linker command failed with exit code 1 (use -v to see invocation) when doing unit test on xcode but doesn't work.

The guy of this post, just created a new project: xCode 7: linker command failed with exit code 1 (use -v to see invocation) But is not a solution to me, because my project is huge.

回答1:

To solve this problem:

  1. Go to your project setting page
  2. Select your project (left side)
  3. Click the "Build Settings" tab
  4. Search "Bitcode"
  5. Set "Enable Bitcode" to "No"


回答2:

My problem solved by select device instead of simulator to install the app. as libs i was using not support the linker for simulator.