Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xCode 7: linker command failed with exit code 1 (use -v to see invocation)

Tags:

xcode

ios

When I run my app in the simulator, everything works fine. But when I try to run it on my device(iOS 8.4) I get this error:

ld: warning: directory not found for option '-F/Applications/Xcode-    beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.0.sdk/Developer/Library/Frameworks'
ld: file not found: /Users/simen/Library/Developer/Xcode/DerivedData/tablesearch-doxaezkgsjeztnfkntkvhvhrjkdj/Build/Products/Debug-iphoneos/tablesearch.app/tablesearch
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Anyone know what to do? Thanks

like image 287
Simen Avatar asked Nov 29 '22 06:11

Simen


2 Answers

To solve this problem:

  • Go to your project setting page
  • Select your project (left side)
  • Click the "Build Settings" tab
  • Search "Bitcode"
  • Set "Enable Bitcode" to "No"
like image 97
Christiaan Beekhuizen Avatar answered Nov 30 '22 19:11

Christiaan Beekhuizen


your device version is iOS 8.4, but project target iOS 9.0 ?
Change your project target to iOS 8.4 and try again.

like image 25
Archie Avatar answered Nov 30 '22 21:11

Archie