开发者

OpenFeint Xcode 4 integration, prefix header not found

开发者 https://www.devze.com 2023-02-16 19:16 出处:网络
I just upgraded to Xcode 4, deleted the OpenFeint folder and added the new 2.9.1 framework according to this readme.

I just upgraded to Xcode 4, deleted the OpenFeint folder and added the new 2.9.1 framework according to this readme. Then I deleted the "build"-Folder (that is now located in ~/library/Developer/...) and rebuilt the application but always get the following error:

/Users/k****/Documents/Tactica/Tactica_Prefix.pch:5:30: error: OpenFeintPrefix.pch: No such file or directory

When I have a look into OpenFeint.framework/headers there is clearly a file "OpenFeintPrefix.pch" included.

Any Idea开发者_运维知识库 why Xcode doesn't find it?


You have to add OpenFeint/ before any includes, like

#import "OpenFeint/OpenFeintPrefix.pch"

This should do it :)


I used OpenFeint a long time ago. The most errors I can solve with redo the instructions.

Also with updating to Xcode 4 al paths gets changed and Xcode has problems with finding files from old projects.

I recommend you to redo the instructions and if it didn't work, I'd recreate the project and add OF again, the problems should be gone then.


When I have a look into OpenFeint.framework/headers there is clearly a file "OpenFeintPrefix.pch" included.

The most obvious point would be, are you looking at that location through finder or Xcode. The file must be included in your xcode project itself rather then just in that folder on the computer?

0

精彩评论

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

关注公众号