简体   繁体   English

iOS应用转换时的适当错误

[英]Apportable Errors With iOS app conversion

I am running the command "apportable load" in the directory of my x-code project for an app that is working on the iOS simulator. 我正在x代码项目的目录中为正在iOS模拟器上运行的应用程序运行命令“ apportable load”。 I have x-code 5.0.2 and when I try to update apportable it says it is the newest version. 我有X代码5.0.2,当我尝试更新apportable它说,这是最新的版本。

I am sorry for the extent of the error output as it may be difficult to read. 对于错误输出的程度,我感到抱歉,因为它可能很难阅读。 I notice some errors that are picking out the sound effects and that they cannot be referenced. 我注意到一些错误正在挑选音效,因此无法引用它们。

Why are the references to settings such as CCScreenModeFixed not identified when they come directly from the spritebuilder interface? 当直接来自spritebuilder界面时,为什么未标识对诸如CCScreenModeFixed之类的设置的引用? Does apportable support sound effects, if so why can't it find mine? 适当的支持声音效果吗?如果可以,为什么找不到我的呢?

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

/Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source/AppDelegate.m:58: error: undefined reference to 'CCScreenModeFixed' / 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:function L_OBJC_CLASSLIST_REFERENCES_$_22: error: undefined reference to 'OBJC_CLASS_$_CCBReader' /Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(AppDelegate.mo):/Users/mateusz/Documents/SpriteBuilder游戏/ Eltie.spritebuilder /来源/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:function OBJC_METACLASS_$_AppController: error: undefined reference to 'OBJC_METACLASS_$_CCAppDelegate' /Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(AppDelegate.mo):/Users/mateusz/Documents/SpriteBuilder游戏/ Eltie.spritebuilder /来源/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:function OBJC_CLASS_$_AppController: error: undefined reference to 'OBJC_CLASS_$_CCAppDelegate' /Users/mateusz/Documents/SpriteBuilder Games/Eltie.spritebuilder/Source/Gameplay.m:186: error: undefined reference to 'clampf' /Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(AppDelegate.mo):/Users/mateusz/Documents/SpriteBuilder游戏/ Eltie.spritebuilder /来源/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_$_: error: undefined reference to '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:函数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: error: undefined reference to '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:函数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: error: undefined reference to '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 _ $ _ 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:function L_OBJC_CLASSLIST_REFERENCES_$_133: error: undefined reference to '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:函数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: error: undefined reference to 'OBJC_CLASS_$_CCActionSequence' /Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.mo):/Users/mateusz/Documents/SpriteBuilder游戏/ Eltie.spritebuilder /来源/Gameplay.m:函数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: error: undefined reference to '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:函数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: error: undefined reference to 'OBJC_METACLASS_$_CCNode' /Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/com.apportable.Eltie/Eltie/libEltie.a(Gameplay.mo):/Users/mateusz/Documents/SpriteBuilder游戏/ Eltie.spritebuilder /来源/Gameplay.m:函数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: error: undefined reference to 'OBJC_CLASS_$_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:函数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:function OBJC_METACLASS_$_Goal: error: undefined reference to '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_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:function OBJC_CLASS_$_Goal: error: undefined reference to '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_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:function OBJC_METACLASS_$_Hiss: error: undefined reference to '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_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:function OBJC_CLASS_$_Hiss: error: undefined reference to '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_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:function L_OBJC_CLASSLIST_REFERENCES_$_: error: undefined reference to '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 _ $ _:错误:对'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:function L_OBJC_CLASSLIST_REFERENCES_$_1: error: undefined reference to '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 _ $ _ 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:function L_OBJC_CLASSLIST_REFERENCES_$_6: error: undefined reference to '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:函数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:function OBJC_METACLASS_$_MainScene: error: undefined reference to '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_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:function OBJC_CLASS_$_MainScene: error: undefined reference to 'OBJC_CLASS_$_CCNode' ninja: build stopped: subcommand failed. /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'的未定义引用忍者:构建停止:子命令失败。 Error: command failed: /Users/mateusz/.apportable/SDK/toolchain/macosx/ninja/ninja --no-strip-ansi-escapes -j 8 /Users/mateusz/.apportable/SDK/Build/android-armeabi-debug/Eltie/Eltie-debug.apk 错误:命令失败:/Users/mateusz/.apportable/SDK/toolchain/macosx/ninja/ninja --no-strip-ansi-escapes -j 8 /Users/mateusz/.apportable/SDK/Build/android-armeabi-调试/艾蒂/艾蒂-debug.apk

Okay, I figured it out with the help of the answer from this question: static libs with apportable 好的,我在以下问题的答案的帮助下找到了答案: 具有可分配属性的静态库

I did not have the cocos2d library added in the target dependencies section of the build phases tab in x-code. 我没有用x代码在“构建阶段”选项卡的“目标依赖项”部分中添加cocos2d库。 When I added it apportable had no issues finding the undefined types given from spritebuilder and cocos2d. 当我添加它时,apportable不会发现spritebuilder和cocos2d提供的未定义类型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM