Getting Framework related warning in Xcode 7.0

XcodeSwiftFrameworksXcode7

Xcode Problem Overview


error I'm receiving is this

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

I have no idea why this is coming is this related to framework ?

Xcode Solutions


Solution 1 - Xcode

I get rid of these by finding the target(s) that generated the error, then removing/deleting the (odd) path in the "Framework Search Paths" build setting:

specific build setting

Solution 2 - Xcode

What solves this for me is to create a new scheme. Click on Product-> Scheme -> New Scheme and just hit OK. Then my app seems to build and run.

Solution 3 - Xcode

After much digging, I found this is actually related to my test target of my app.

enter image description here

The Fix

If you select your project, and look under ‘Targets’, you should see two targets. One is your app and the other one is your test. Under ‘Search Paths’ (in my test target), I found it was including two items under ‘Framework Search Paths’:

$(SDKROOT)/Developer/Library/Frameworks $(inherited)

enter image description here

Deleting those entries in my older project then removed the warning. I did not have to make any changes to the other target.

Solution 4 - Xcode

Instead of deleting Framework Searh Paths (It causes other problems specially if you're using Fabric framework), you can change this line :

> $(SDKROOT)/Developer/Library/Frameworks

with

> $(SDKROOT)/Developer/Library/PrivateFrameworks

and it should work.

Solution 5 - Xcode

Please, let me this contribution.

I had this problem working with Xcode 8.0 (8A218a) and for a iOS Deployment Target 10.

Concretely, Xcode could not read the MapKit.framework. Error message said:

ld: warning: ignoring file /Users/Admin/Documents/APPS/PeekaWish/PeekaWish/MapKit.framework/MapKit, missing required architecture x86_64 in file /Users/Admin/Documents/APPS/PeekaWish/PeekaWish/MapKit.framework/MapKit (3 slices)

The worst thing was that I had not made any changes. The inconsistency apparently occurred after a bad Product Build (My project folder appear duplicated on the Xcode Editor, on Left Side, the Navigator Bar)

I lost a lot of time: linking repeatedly the MapKit.framework

Finally, I found the solution. It is a mix of above solutions.

> 1 STEP: Click on Product-> Scheme -> New Scheme and just hit OK >

On TARGETS (the App) and Build Settings:

> 2 STEP: Deleting Framework Search Paths (leave these fields empty) > > 3 STEP: Always Search User Paths -> NO

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSabhay SardanaView Question on Stackoverflow
Solution 1 - XcodehEADcRASHView Answer on Stackoverflow
Solution 2 - XcodeprankinView Answer on Stackoverflow
Solution 3 - XcodeGrigoView Answer on Stackoverflow
Solution 4 - XcodemarmaraloneView Answer on Stackoverflow
Solution 5 - XcodeMarkusView Answer on Stackoverflow