我有一个cocos2d项目&有两个目标“免费”& “亲”。
“免费”目标运行良好 - 所以我复制了它以将其变成“专业版”但是这个重复的目标会产生大量“_OBJC_CLASS_”错误:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_CCDirector", referenced from:
objc-class-ref in HelloWorldScene.o
objc-class-ref in RootViewController.o
objc-class-ref in CleverMouseAppDelegate.o
objc-class-ref in LogoSence.o
objc-class-ref in GameSence.o
objc-class-ref in MenuSence.o
objc-class-ref in EndSence.o
...
"_OBJC_CLASS_$_CCEaseBounceOut", referenced from:
objc-class-ref in MenuSence.o
"_OBJC_CLASS_$_CCLabelTTF", referenced from:
objc-class-ref in HelloWorldScene.o
"_OBJC_CLASS_$_CCLayer", referenced from:
_OBJC_CLASS_$_HelloWorld in HelloWorldScene.o
_OBJC_CLASS_$_LogoSence in LogoSence.o
_OBJC_CLASS_$_GameSence in GameSence.o
_OBJC_CLASS_$_MenuSence in MenuSence.o
_OBJC_CLASS_$_EndSence in EndSence.o
"_OBJC_CLASS_$_CCMenu", referenced from:
objc-class-ref in GameSence.o
objc-class-ref in MenuSence.o
objc-class-ref in EndSence.o
"_OBJC_CLASS_$_CCMenuItemImage", referenced from:
objc-class-ref in GameSence.o
objc-class-ref in MenuSence.o
objc-class-ref in EndSence.o
"_OBJC_CLASS_$_CCMoveBy", referenced from:
objc-class-ref in MenuSence.o
objc-class-ref in EndSence.o
"_OBJC_CLASS_$_CCRepeatForever", referenced from:
objc-class-ref in MenuSence.o
objc-class-ref in EndSence.o
"_OBJC_CLASS_$_CCScaleBy", referenced from:
objc-class-ref in MenuSence.o
"_OBJC_CLASS_$_CCScene", referenced from:
objc-class-ref in HelloWorldScene.o
objc-class-ref in LogoSence.o
objc-class-ref in GameSence.o
objc-class-ref in MenuSence.o
objc-class-ref in EndSence.o
"_OBJC_CLASS_$_CCSequence", referenced from:
objc-class-ref in MenuSence.o
objc-class-ref in EndSence.o
"_OBJC_CLASS_$_CCSprite", referenced from:
objc-class-ref in LogoSence.o
objc-class-ref in GameSence.o
objc-class-ref in MenuSence.o
objc-class-ref in EndSence.o
"_OBJC_CLASS_$_CCTexture2D", referenced from:
objc-class-ref in CleverMouseAppDelegate.o
"_OBJC_CLASS_$_CCTextureCache", referenced from:
objc-class-ref in GameSence.o
"_OBJC_CLASS_$_CCTransitionFade", referenced from:
objc-class-ref in LogoSence.o
objc-class-ref in GameSence.o
objc-class-ref in MenuSence.o
objc-class-ref in EndSence.o
"_OBJC_CLASS_$_EAGLView", referenced from:
objc-class-ref in CleverMouseAppDelegate.o
"_OBJC_CLASS_$_SimpleAudioEngine", referenced from:
objc-class-ref in LogoSence.o
objc-class-ref in GameSence.o
objc-class-ref in EndSence.o
"_OBJC_METACLASS_$_CCLayer", referenced from:
_OBJC_METACLASS_$_HelloWorld in HelloWorldScene.o
_OBJC_METACLASS_$_LogoSence in LogoSence.o
_OBJC_METACLASS_$_GameSence in GameSence.o
_OBJC_METACLASS_$_MenuSence in MenuSence.o
_OBJC_METACLASS_$_EndSence in EndSence.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
注意:我已经“cocos2d库”并且它的目标会员资格已经开启了两个目标!
答案 0 :(得分:1)