0

我正在我的 x-code 项目目录中为在 iOS 模拟器上运行的应用程序运行命令“可移植负载”。我有 x-code 5.0.2,当我尝试更新 apportable 时,它​​说它是最新版本。

对于错误输出的范围,我很抱歉,因为它可能难以阅读。我注意到一些错误正在挑选声音效果并且它们无法被引用。

为什么直接来自 spritebuilder 界面时无法识别对 CCScreenModeFixed 等设置的引用?apportable是否支持音效,如果支持为什么找不到我的?

/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source/AppDelegate.m:58:错误:未定义对“CCSetupScreenMode”的引用

/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source/AppDelegate.m:58:错误:未定义对“CCScreenModeFixed”的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(AppDelegate.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /AppDelegate.m:函数 L_OBJC_CLASSLIST_REFERENCES_$_22:错误:未定义对“OBJC_CLASS_$_CCBReader”的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(AppDelegate.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /AppDelegate.m:函数 OBJC_METACLASS_$_AppController:错误:未定义对 'OBJC_METACLASS_$_CCAppDelegate' 的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(AppDelegate.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /AppDelegate.m:函数 OBJC_CLASS_$_AppController:错误:未定义对“OBJC_CLASS_$_CCAppDelegate”的引用 /Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source/Gameplay.m:186:错误:未定义对“clampf”的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /Gameplay.m:function L_OBJC_CLASSLIST_REFERENCES_$_: 错误:未定义的对 'OBJC_CLASS_$_OALSimpleAudio' 的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /Gameplay.m:function L_OBJC_CLASSLIST_REFERENCES_$_73: 错误: 未定义对 'OBJC_CLASS_$_CCBReader' 的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /Gameplay.m:function L_OBJC_CLASSLIST_REFERENCES_$_122: 错误: 未定义引用'OBJC_CLASS_$_CCDirector'

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /Gameplay.m:函数 L_OBJC_CLASSLIST_REFERENCES_$_133:错误:未定义对“OBJC_CLASS_$_CCActionMoveBy”的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /Gameplay.m:function L_OBJC_CLASSLIST_REFERENCES_$_138: 错误: 未定义引用'OBJC_CLASS_$_CCActionSequence'

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /Gameplay.m:function L_OBJC_CLASSLIST_REFERENCES_$_141: 错误: 未定义引用'OBJC_CLASS_$_CCActionEaseBounce'

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /Gameplay.m:function OBJC_METACLASS_$_Gameplay: 错误:未定义的对 'OBJC_METACLASS_$_CCNode' 的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /Gameplay.m:function OBJC_CLASS_$_Gameplay: 错误: 未定义对 'OBJC_CLASS_$_CCNode' 的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Goal.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /Goal.m:函数 OBJC_METACLASS_$_Goal:错误:未定义对 'OBJC_METACLASS_$_CCNode' 的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Goal.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /Goal.m:函数 OBJC_CLASS_$_Goal:错误:未定义对 'OBJC_CLASS_$_CCNode' 的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Hiss.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /Hiss.m:函数 OBJC_METACLASS_$_Hiss:错误:未定义对 'OBJC_METACLASS_$_CCNode' 的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Hiss.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /Hiss.m:函数 OBJC_CLASS_$_Hiss:错误:未定义对 'OBJC_CLASS_$_CCNode' 的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(MainScene.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /MainScene.m:函数 L_OBJC_CLASSLIST_REFERENCES_$_:错误:未定义对 'OBJC_CLASS_$_CCBReader' 的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(MainScene.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /MainScene.m:函数 L_OBJC_CLASSLIST_REFERENCES_$_1:错误:未定义对“OBJC_CLASS_$_CCDirector”的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(MainScene.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /MainScene.m:函数 L_OBJC_CLASSLIST_REFERENCES_$_6:错误:未定义对“OBJC_CLASS_$_OALSimpleAudio”的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(MainScene.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /MainScene.m:函数 OBJC_METACLASS_$_MainScene:错误:未定义对 'OBJC_METACLASS_$_CCNode' 的引用

/Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(MainScene.mo):/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source /MainScene.m:函数 OBJC_CLASS_$_MainScene:错误:未定义对“OBJC_CLASS_$_CCNode”忍者的引用:构建已停止:子命令失败。错误:命令失败:/Users/mateusz/.apportable/SDK/toolchain/macosx/ninja/ninja --no-strip-ansi-escapes -j 8 /Users/mateusz/.apportable/SDK/Build/android-armeabi-调试/Eltie/Eltie-debug.apk

4

1 回答 1

0

好的,我在这个问题的答案的帮助下弄明白了:静态库与适当的

我没有在 x-code 的构建阶段选项卡的目标依赖项部分添加 cocos2d 库。当我添加它时,可以毫无问题地找到 spritebuilder 和 cocos2d 给出的未定义类型。

于 2014-05-21T21:49:10.997 回答