compiling_for_ios.rst 974 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .. _doc_compiling_for_ios:
  2. Compiling for iOS
  3. =================
  4. .. highlight:: shell
  5. Requirements
  6. ------------
  7. - SCons (you can get it from macports, you should be able to run
  8. ``scons`` in a terminal when installed)
  9. - Xcode with the iOS SDK and the command line tools.
  10. Compiling
  11. ---------
  12. Open a Terminal, go to the root dir of the engine source code and type:
  13. ::
  14. $ scons p=iphone bin/godot.iphone.debug
  15. for a debug build, or:
  16. ::
  17. $ scons p=iphone bin/godot.iphone.opt target=release
  18. for a release build (check ``platform/iphone/detect.py`` for the compiler
  19. flags used for each configuration).
  20. Alternatively, you can run
  21. ::
  22. $ scons p=isim bin/godot.isim.tools
  23. for a Simulator executable.
  24. Run
  25. ---
  26. To run on a device or simulator, follow these instructions:
  27. :ref:`doc_exporting_for_ios`.
  28. Replace or add your executable to the Xcode project, and change the
  29. "executable name" property on Info.plist accordingly if you use an
  30. alternative build.