How to use CoreData in Apportable?

后端 未结 1 425
天命终不由人
天命终不由人 2021-01-15 05:48

I trying the full version of apportable and I have a problem with the CoreData:

I have the correct features at configuration.json:

\"FEATURES\": [\"o         


        
相关标签:
1条回答
  • 2021-01-15 06:46

    sorry for such a late response, but i didn't want to let the question go unanswered. right now momd files aren't automatically added as assets. unfortunately, there's a manual step you'll need to do every time you update the xcdatamodeld.

    1. navigate to your simulator's Applications directory (e.g. ~/Library/Application\ Support/iPhone\ Simulator/6.1/Applications/<randomString>/<YourApp>.app/)
    2. navigate into the momd directory
    3. run the following in terminal: plutil -convert xml1 <ModelName>.mom -o <pathNearYourApprojFolder>/<ModelName>.mom
    4. in your configuration.json in the add_params dictionary, then in the assets array, add the path <pathRelativeToApprojFolder>/<ModelName>.mom of the file you converted with plutil
    0 讨论(0)
提交回复
热议问题