2016-02-08 23:45:57 +01:00
|
|
|
.. _doc_compiling_for_ios:
|
2016-02-08 22:07:55 +01:00
|
|
|
|
2015-12-12 17:57:44 +01:00
|
|
|
Compiling for iOS
|
|
|
|
=================
|
|
|
|
|
2016-02-06 12:09:16 +01:00
|
|
|
.. highlight:: shell
|
|
|
|
|
2015-12-12 17:57:44 +01:00
|
|
|
Requirements
|
|
|
|
------------
|
|
|
|
|
|
|
|
- SCons (you can get it from macports, you should be able to run
|
|
|
|
``scons`` in a terminal when installed)
|
|
|
|
- Xcode with the iOS SDK and the command line tools.
|
|
|
|
|
|
|
|
Compiling
|
|
|
|
---------
|
|
|
|
|
|
|
|
Open a Terminal, go to the root dir of the engine source code and type:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
$ scons p=iphone bin/godot.iphone.debug
|
|
|
|
|
|
|
|
for a debug build, or:
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
$ scons p=iphone bin/godot.iphone.opt target=release
|
|
|
|
|
|
|
|
for a release build (check platform/iphone/detect.py for the compiler
|
|
|
|
flags used for each configuration).
|
|
|
|
|
|
|
|
Alternatively, you can run
|
|
|
|
|
|
|
|
::
|
|
|
|
|
|
|
|
$ scons p=isim bin/godot.isim.tools
|
|
|
|
|
|
|
|
for a Simulator executable.
|
|
|
|
|
|
|
|
Run
|
|
|
|
---
|
|
|
|
|
2016-02-09 23:40:35 +01:00
|
|
|
To run on a device or simulator, follow these instructions:
|
|
|
|
:ref:`doc_exporting_for_ios`.
|
|
|
|
|
|
|
|
Replace or add your executable to the Xcode project, and change the
|
|
|
|
"executable name" property on Info.plist accordingly if you use an
|
|
|
|
alternative build.
|