The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

Hello everybody. I just want to test my game on Iphone simulator.

I'm following all the steps on "Compiling for IOS" page on documentations, but I wasn't succeed yet.

I have Xcode(7) installed with command line tools and also sCons.

    scons p=isim bin/
    scons p=iphone bin/godot.iphone.debug

I get same error with both of commands above. I also tried these commands with sudo
and the error is below...

scons: Reading SConscript files ...
No valid target platform selected.
The following were detected:

Please run scons again with argument: platform=<string>
scons: done reading SConscript files.
scons: Building targets ...
scons: *** Do not know how to make File target `bin/'(godot-master/bin/  Stop.
scons: building terminated because of errors.

but somehow when i run command below, it just compiled.

scons p=iphone

and name of compiled file was godot.iphone.debug.arm

I just don't know what to do. Please help me. Have a good day.

in Engine by (23 points)
edited by

1 Answer

+1 vote
Best answer

The documentation is outdated in this regard. p=isim is not valid anymore. You also shouldn't add the binary name in the command.

Building for iPhone should be like this:

# For debug build:
scons p=iphone target=release_debug
# For release build
scons p=iphone target=release

If you want to build for x86 (the simulator):

# For debug build:
scons p=iphone target=release_debug ios_sim=yes
# For release build
scons p=iphone target=release ios_sim=yes

ios_sim=yes can also be replaced by arch=x86.

by (800 points)
selected by

Thanks alot! It works perfectly.

But is possible to compile for simulator with 64 bits architecture?
Thanks in advance.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.