Xcode not copying latest resource file to iPhone

前端 未结 11 1113
我寻月下人不归
我寻月下人不归 2021-02-02 09:53

I\'m writing an iPhone app in Objective-C with Xcode and I have some Lua scripts that run on the device.

I\'m having an issue where if I edit a Lua script, save, flick o

11条回答
  •  北荒
    北荒 (楼主)
    2021-02-02 10:29

    I had a similar problem auto-copying a script file, when changed. Had set its Type to "C" to allow for auto syntax highlighting. Had added the file to "Build Phases / Copy Bundle Resources". But no luck; changes to the file would not update the bundle.

    The fix, in this case, was to change the Type from "C" to "JSON". Now, it updates the bundle automatically on the device. Makes sense, since source files are rarely needed for a binary. Originally, Apple didn't allow any scripting.

    enter image description here

提交回复
热议问题