57
votes

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 ?

5
You can solve it by creating a new project. I had the same problem. The projects settings most options disappearedLeo Dabus
it's quite tough to create a new project its like starting from zeroSabhay Sardana

5 Answers

89
votes

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

32
votes

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.

24
votes

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.

8
votes

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.

0
votes

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