22

I have a warning in my ios appTests:

Ld /Users/Mazorati/Library/Developer/Xcode/DerivedData/exchangerate-fxnywlxmtfpaccbcpsmygvhirtma/Build/Products/Debug-iphonesimulator/exchangerateTests.xctest/exchangerateTests normal x86_64
cd /Users/Mazorati/Projects/iOS/exchangerate
export IPHONEOS_DEPLOYMENT_TARGET=8.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk -L/Users/Mazorati/Library/Developer/Xcode/DerivedData/exchangerate-fxnywlxmtfpaccbcpsmygvhirtma/Build/Products/Debug-iphonesimulator -F/Users/Mazorati/Library/Developer/Xcode/DerivedData/exchangerate-fxnywlxmtfpaccbcpsmygvhirtma/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks -filelist /Users/Mazorati/Library/Developer/Xcode/DerivedData/exchangerate-fxnywlxmtfpaccbcpsmygvhirtma/Build/Intermediates/exchangerate.build/Debug-iphonesimulator/exchangerateTests.build/Objects-normal/x86_64/exchangerateTests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -mios-simulator-version-min=8.1 -bundle_loader /Users/Mazorati/Library/Developer/Xcode/DerivedData/exchangerate-fxnywlxmtfpaccbcpsmygvhirtma/Build/Products/Debug-iphonesimulator/exchangerate.app/exchangerate -Xlinker -objc_abi_version -Xlinker 2 -framework XCTest -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/Mazorati/Library/Developer/Xcode/DerivedData/exchangerate-fxnywlxmtfpaccbcpsmygvhirtma/Build/Intermediates/exchangerate.build/Debug-iphonesimulator/exchangerateTests.build/Objects-normal/x86_64/exchangerateTests.swiftmodule -Xlinker -dependency_info -Xlinker /Users/Mazorati/Library/Developer/Xcode/DerivedData/exchangerate-fxnywlxmtfpaccbcpsmygvhirtma/Build/Intermediates/exchangerate.build/Debug-iphonesimulator/exchangerateTests.build/Objects-normal/x86_64/exchangerateTests_dependency_info.dat -o /Users/Mazorati/Library/Developer/Xcode/DerivedData/exchangerate-fxnywlxmtfpaccbcpsmygvhirtma/Build/Products/Debug-iphonesimulator/exchangerateTests.xctest/exchangerateTests

Error:

ld: warning: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'
mazorati
  • 2,031
  • 3
  • 22
  • 22
  • 2
    possible duplicate of [Xcode 7 Beta Library search path warning](http://stackoverflow.com/questions/30827022/xcode-7-beta-library-search-path-warning) – Paul R Sep 21 '15 at 14:54

5 Answers5

39
  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
jeanzuck
  • 726
  • 1
  • 7
  • 17
  • 1
    please update the answer to include the information in the link. – Esqarrouth Oct 20 '15 at 15:02
  • 2
    All my pods got erased, and it can't find any of my other frameworks now. kinda made the problem worse. – sosale151 Feb 23 '16 at 18:24
  • Because it's a hack, not a solution. Did you manually create a unit test class. If you did, check the target. It might not be attached to the main project. – Gautam Jain Mar 31 '16 at 12:06
5

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.

Luke
  • 9,512
  • 15
  • 82
  • 146
mircaea
  • 344
  • 3
  • 9
  • Well, that did actually work ... not the best solution though i guess. – Gene Feb 16 '16 at 08:56
  • In test target 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 – Shoaib May 20 '16 at 12:39
1

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
Michal Gumny
  • 1,770
  • 1
  • 16
  • 24
0

I receive this error when opening files from their destination in finder. However, if I open the project from X Code it works fine.

0

Project 'Test' file delete to solution this app.

P.J.Radadiya
  • 1,493
  • 1
  • 12
  • 21