core data - Supporting coredata



我使用https://stackoverflow.com/a/20161667/644149这个链接来支持coredata在apportable.

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

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

添加到配置的"add_params"中的"assets"部分的文件格式。Json应该用双引号和逗号分隔。

相关内容

  • 没有找到相关文章

最新更新