Swift 2 iOS 9 - ld: warning: directory not found iPhoneSimulator9.0.sdk/Developer/Library/Frameworks Swift 2 iOS 9 - ld: warning: directory not found iPhoneSimulator9.0.sdk/Developer/Library/Frameworks xcode xcode

Swift 2 iOS 9 - ld: warning: directory not found iPhoneSimulator9.0.sdk/Developer/Library/Frameworks


  1. Click on your project (targets)
  2. Click on Build Settings
  3. Use the arrows next to your project name (right above the Basic and All buttons) the change to the Tests target
  4. if the warning is ...for option '-L/... thats Library Search Paths, delete the stuff there
    if the warning is ...for option '-F/... thats Framework Search Paths, delete the stuff there
  5. Clean
  6. Build


The warning i was getting was this:

ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/Developer/Library/Frameworks'

My Framework Search Paths were empty so updating/deleting this + Clean + Rebuild did not work for me...

If you are in this situation, try deleting your projects test target.


I got this warning together with 44 errors about about classes not valid for i386. What helped for me was:

  • product clean
  • close Xcode
  • remove all files from ~/Library/Developer/Xcode/DerivedData