4

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

3
  • do a clean before running, also try deleting app on mobile, Commented Aug 24, 2015 at 0:55
  • Tried to Clean, and build fails when I try to run on iPhone Commented Aug 24, 2015 at 0:57
  • Have you checked your build and run target version ? Commented Aug 24, 2015 at 5:16

6 Answers 6

20

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"
Sign up to request clarification or add additional context in comments.

2 Comments

This worked, but what was that all about? It happened all of a sudden!
Thanks, worked for me. But previously it was working with BITCODE=YES, why not now?
4

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

Comments

1

Either the SDKROOT setting in your project got corrupted with extra spaces (assuming those spaces are not a typo) or something is wrong with your copy of Xcode (if those spaces are a typo).

If it isn't one of those two things, then look inside the .xcodeproj bundle and open the project.pbxproj file with a text editor and search for "Xcode- beta.app" (with those extra spaces). Find that, figure out which setting is wrong based on the name of the field that has that as part of its value, and fix the relevant setting in Xcode.

Comments

0

I created a new Project, and now everything works fine. Thanks for your help.

Comments

0

For my situation the problem was a faulty plugin.

Try removing any non common plugins and try again.

Comments

-1

Try this ..

  • Go to your project setting page
  • Select your project (left side)
  • Click the "General" tab
  • Select the app in "Host Application"

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.