Link warning after converting project to Xcode 7

(Since there's no specific forum for the beta of Xcode 7, I'm posting this here...)


After letting Xcode convert a simple Swift project to Xcode 7, and fixing the various Swift "inspired" build errors, I'm still seeing a link warning:


ld: warning: directory not found for option '-F/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'


This looks like it's coming while Xcode is linking the test target:


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

I looked in the directory given in the warning, and there is not a "Frameworks" directory, under the ../iPhoneSimulator9.0.sdk/Developer/Library/ directory.


Not sure where to go to fix this. (A new Swift project builds just fine.


Anyone?


Thanks.

What I do is just delete the test target.

Facing the same issue with XCode 7.0 Beta 3. Have checked my Framework Search Paths and there is nothing to delete.

1. Click on your project (targets)

2. Click onn 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

Go for it.

This solved my issue. 🙂

Worked for us. Thanks.

Unfortunately, this didn't seem to work for me. 😟


Warning I'm getting:


Directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'


Compiler successfully builds my app (Xcode 7.0.1 / iOS 9), but the warning doesn't want to go away.


When viewing my Build Settings > Search Paths > Framework Search Paths, both Debug and Release settings are blank. Nothing to delete...


Anyone else running into the same problem?

Same problem here...

Same thing.

My target fields are empty and I get the same warn...

Bingo! Deleting the Test target helped. Cheers.

Following QLogic's method removed the warning.

However, does anyone know why the path was specified?

Was the path not suppose to be specified or was an incorrect path specified?


In my projects Build Settings, I selected my test target. Then in the Search Paths->Framework Search Paths fields I removed the path 'Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.0.sdk/Developer/Library/Frameworks'


After looking at http://stackoverflow.com/questions/5481062/xcode-4-unable-to-attach-to-iphone-simulator-double-application I noticed I actually had the `PrivateFrameworks` folder instead of the `Frameworks` folder. This is why I wonder if the path name was incorrectly specified, maybe due to a change in the folder name on an update or something.


Any thoughts? The fix is helpful, but I'd like to know what happened and why. Thanks.

Link warning after converting project to Xcode 7
 
 
Q