Remove Xcode7 in directory not found for option ' XXXX ' warning
After upgrading Xcode7, you will encounter some warning messages such as the following:
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 '
At this point, you can solve:
The process steps are as follows:
You can refer to the official Apple solution:
https://forums.developer.apple.com/thread/4256
ASK:
After upgrading a existing Swift project I am seeing the following warning when it builds the tests:
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 '
That's directory does not exist. Should it is looking for sdks/iphoneos9.0.sdk/system/library/frameworks?
Is this something, that needs fixing within my project Files/build settings/etc?
ANSWER:
Found something when comparing a new project vs. older one ...
In the old project, the warning is only being produced by the test target of my projects. Under 'search Paths', I found it was including II items under 'Framework Search Paths':
$ (sdkroot)/developer/library/frameworks
$ (inherited)
The new project kept the ' Framework Search Paths ' empty.
Deleting those entries in my older project then removed the warning.
NOTE:I has not a exhaustively compared settings, so there could be additional differences.
Remove Xcode7 in directory not found for option ' XXXX ' warning