如何使用子项目与Apportable



目前Apportable不能在子项目中引用c++类。

Dexing classes.
Archiving Build/android-armeabi-debug/AAAA/apk/lib/armeabi/libconfig.a
Indexing Build/android-armeabi-debug/AAAA/apk/lib/armeabi/libconfig.a
Linking Build/android-armeabi-debug/AAAA/apk/lib/armeabi/libverde.so
/Users/Eonil/Desktop/Apportable Bug Reporting/2013-06-21/aaaa2/AAAA/AAAA/main.mm:18: error: undefined reference to 'BBBB::bbbb()'
scons: *** [Build/android-armeabi-debug/AAAA/apk/lib/armeabi/libverde.so] Error 1
scons: building terminated because of errors.
Exception AttributeError: "'NoneType' object has no attribute 'pack'" in <bound method ZipFile.__del__ of <zipfile.ZipFile instance at 0x10a1e8b90>> ignored
Erionirr:AAAA Eonil$ 

我认为这需要额外的设置,但我不明白。具体来说,在本节中configuration.json文件。

//Sub projects
"modules": [],

我怎样才能使Apportable构建和链接子项目正确?

理想情况下,你应该能够在xcode构建阶段添加目标依赖关系,然后将该子项目链接进去。否则,如果您想手动指定添加的模块,则布局如下:

{
    "project": "project_name", 
    "build_cwd": "../some_dir", 
    "target": "the_target_of_the", 
    "project_config": "Release"
},

相关内容

  • 没有找到相关文章

最新更新