开发者

Importing frameworks on xcode 4 issue

Lately any framework I attempt to add to my project fails with "No such file or directory".

Eg for GameKit:
<GameKit/GameKit.h>: No such file or directory

The strange thing is that the frameworks that I added some time ago are found, but if i try to add the same framework now, I get this error. Where should I look? H开发者_Go百科ope I don't have to re-install xcode for this:(

To add a framework I use the steps described here (to remove the suspicion that I don't add it in the right manner): How to "add existing frameworks" in Xcode 4?

Also I've checked here:

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/GameKit.framework/

and the framework does exist. The base SDK is set to 4.3(latest), so that's not the problem either.


I'm not sure if this is going to work, but I use another method to add frameworks, which is go to your project (The one with the xcodeproj icon), then click on your target. There, you can add the frameworks you want.

If that doesn't work, then try go to /Library/Frameworks to see if your framework you want is still there. If it's there and it's still getting that error, try manually adding the framework which is the add other button when you add a framework.


It must not exist. It either got deleted or never existed to begin with, which makes me think it must have got deleted. Sorry, buddy.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜