https://docs.godotengine.org/en/3.1/development/compiling/compiling_for_ios.html
Some keywords in doc are different that scaring me, information in this doc almost enough.
Let's record what have I did.
- Download 3.1.1-stable binary from official, so I have export template reference
- Change from stable to custom at version.py in my custom godot project(with spine module)
- Create folder ~/Library/Application Support/Godot/templates/3.1.1.custom (export template folder)
- Copy ~/Library/Application Support/Godot/templates/3.1.1.stable/iphone.zip to ~/Library/Application Support/Godot/templates/3.1.1.custom/iphone.zip
- unzip iphone.zip, put *.fat.a below in it and zip
scons platform=iphone tools=no target=release arch=arm
scons platform=iphone tools=no target=release arch=arm64
lipo -create bin/libgodot.iphone.opt.arm.a bin/libgodot.iphone.opt.arm64.a -output bin/libgodot.iphone.release.fat.a
scons platform=iphone tools=no target=debug arch=arm
scons platform=iphone tools=no target=debug arch=arm64
lipo -create bin/libgodot.iphone.opt.debug.arm.a bin/libgodot.iphone.opt.debug.arm64.a -output bin/libgodot.iphone.debug.fat.a
Build the editor
scons platform=osx tools=yes
And I get spineboy works on my iPhone!