Remove Xcode7 in directory not found for option ' XXXX ' warning

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.