Getting Framework related warning in Xcode 7.0

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 10:37:23

问题


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 ?


回答1:


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:




回答2:


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.




回答3:


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

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)

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




回答4:


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.




回答5:


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



来源:https://stackoverflow.com/questions/30810874/getting-framework-related-warning-in-xcode-7-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!