支持coredata

时间:2014-03-20 07:15:49

标签: core-data apportable

我正在使用此https://stackoverflow.com/a/20161667/644149此链接来支持apportable中的coredata。

1 - 我有我的数据库的模型版本数量,所以我应该在plutil命令中给出什么名称。

 plutil -convert xml1 <ModelName>.mom -o <pathNearYourApprojFolder>/<ModelName>.mom

2 - 当我将.mom文件路径放入资产时,它给出了以下错误, 提前致谢

ROOTED=yes MTP=no apportable debug
Building with TARGET_ARCH_ABI:armeabi ARM_NEON:False
Building to /Users/username/.apportable/SDK/Build/android-armeabi-debug
Loading configuration.
Traceback (most recent call last):
  File "/Users/username/.apportable/SDK/bin/apportable", line 820, in <module>
    run(env)
  File "/Users/username/.apportable/SDK/bin/apportable", line 756, in run
    results = actions[args.action](env)
  File "/Users/username/.apportable/SDK/bin/apportable", line 106, in DebugAction
    return env.DebugApp(site_init.BuildApplication(env, env['BUILD_TARGET']))
  File "/Users/username/.apportable/SDK/site_scons/site_init.py", line 401, in BuildApplication
    return build.App(env, app_sconscript)
  File "/Users/username/.apportable/SDK/site_scons/build/__init__.py", line 527, in App
    (sources, headers, defines, flags, configs, deps, libs, java_libs, assets, pchs, modules, java_sources, java_res_dirs, java_sourcepaths, link_flags) = Script(env, path, contents, use_absolute_paths=True, is_application=True)
  File "/Users/username/.apportable/SDK/site_scons/build/__init__.py", line 423, in Script
    if icon == asset['target']:
TypeError: string indices must be integers

1 个答案:

答案 0 :(得分:0)

Apportable现在支持二进制.mom文件,因此不再需要转换为xml的步骤。

添加到configuration.json的“add_params”中“assets”部分的文件格式应该用双引号括起来并以逗号分隔。