• Building
  • Step to build custom export template?

I just checkout 3.1.1-stable and trying to use spine module. https://github.com/GodotExplorer/spine Use scons platform=osx to build, and run the binary in bin/

The editor works very fine, even test run. But if I want to export for iOS, I should build the export template from exact same source?

scons platform=iphone only generate .a binary I have a look on /Users/<user>/Library/Application Support/Godot/templates/3.1.1.stable/iphone.zip that contain more files

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.

  1. Download 3.1.1-stable binary from official, so I have export template reference
  2. Change from stable to custom at version.py in my custom godot project(with spine module)
  3. Create folder ~/Library/Application Support/Godot/templates/3.1.1.custom (export template folder)
  4. Copy ~/Library/Application Support/Godot/templates/3.1.1.stable/iphone.zip to ~/Library/Application Support/Godot/templates/3.1.1.custom/iphone.zip
  5. 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!