my application use cocos2d and all work fine in simulator but when i开发者_JAVA技巧 try to build my app for device i've the next error:
"_OBJC_CLASS_$_CCTextureCache", referenced from:
"_OBJC_CLASS_$_EAGLView", referenced from: "_OBJC_CLASS_$_CCSprite", referenced from: "_OBJC_METACLASS_$_CCLayer", referenced from: "_OBJC_CLASS_$_CCSpriteFrame", referenced from: "_OBJC_CLASS_$_CCLayer", referenced from: "_OBJC_CLASS_$_CCTexture2D", referenced from: "_OBJC_CLASS_$_CCDirector", referenced from: "_OBJC_CLASS_$_CCScene", referenced from:
How can i fix this?
I have a couple suggestions for this problem:
1) Do you still have your cocos2d libraries still intact? You need to have them linked to your target application for it to work. make sure you have libcocos2d.a, libCocosDenshion.a, and other libraries you need to build your application.
2) Make sure you have libz.dylib somewhere within your project.
精彩评论