Hey guys,
i have a full game that i already have released on the android marketplace, and i now want to be able to build it for ios devices, in fact i bought a new macbook just so i could start coding for ios =p When i go to run my project’s main file, corona simulator crashes on me. Does anyone have any ideas of what i might need to change in my project code that is causing it to crash? Because i am a noob to corona on a MAC i thought maybe i didnt install something right, but i downloaded the ghosts vs monsters code and that seems to run just fine. Any tips or ideas would be greatly appreciated. Hope i dont have to redo all the code in my project… [import]uid: 19620 topic_id: 15793 reply_id: 315793[/import]
Hi there
I had a lot of problems going from ios to android… but it did work out in the end.
I really wish there were some kind of check list of things you should be aware of when doing it…
maybe we should start one in the forum?
This troubleshooting guide did help me a bit though:
http://developer.anscamobile.com/reference/troubleshooting
next time I do an app I will test it on both ios and android as i go along…
that will save a lot of time in the end I think. [import]uid: 13632 topic_id: 15793 reply_id: 58317[/import]
@rxmarccall,
you are one of the few lucky ones. If you app works fine on Android then you do not have to worry much about it working for iOS, in fact the performance will be much better.
Now for the problem, the error that you are getting, are you using Physics in your app? If you are, then wrongly pausing or stopping Physics will crash the simulator.
other than that, I do not think that there should be any issues.
cheers,
?
[import]uid: 3826 topic_id: 15793 reply_id: 58350[/import]
here is what the terminal is telling me when it crashes, might be of some help?
Copyright © 2009-2011 A n s c a , I n c .
Version: 2.0.0
Build: 2011.627
The file sandbox for this project is located at the following folder:
(/Users/Marc/Library/Application Support/Corona Simulator/Source-E2736393722EDC840ED2B31628EFF6DD)
WARNING: Simulator does not support multitouch events
WARNING: Disabling the idle timer reduces battery life on the device. Also, there is no timer on the simulator
/Applications/CoronaSDK/Corona Terminal: line 9: 260 Bus error: 10 “$path/Corona Simulator.app/Contents/MacOS/Corona Simulator” $*
logout
[Process completed] [import]uid: 19620 topic_id: 15793 reply_id: 58382[/import]
It shouldn’t crash. Please submit a bug report with us (link at the top) and make sure to include the Mac crash log. Also if you could provide your project to us some how, that would be a big help.
Meanwhile, I would recommend putting print statements in your Lua scripts to figure out how far your app gets before crashing. You will probably be able to figure out which line is causing the crash.
[import]uid: 7563 topic_id: 15793 reply_id: 58391[/import]
ok i will do that, as well i just found another interesting forum post where a developer stated that the new 2011 macs that have the sandy bridge have issues with opengl, something like that… my mac is a 2011 so i wonder if this can be affecting it. i will go ahead and submit the bug as well [import]uid: 19620 topic_id: 15793 reply_id: 58392[/import]
Just for interest of you guys:
I own a MacBook Pro (March/2011) 13" 2.3 core i5 and I do not know if it is "that"Sandy Bridge or not, but I do not get any trouble as you are telling.
Are you sure it is the Macbook problem or maybe a Corona`s issue?
Regards and Lucky!
Rodrigo. [import]uid: 89165 topic_id: 15793 reply_id: 58470[/import]
Hmm yea, there must be something fishy in my code, i have new projects that i am working on that seem to work just fine. it just seems like a daunting task to have to go through all my project code and try and see what might be causing this problem =( Like i said, on my windows pc, its runs perfectly fine in the corona simulator. [import]uid: 19620 topic_id: 15793 reply_id: 58471[/import]
A crashing Corona simulator is a Corona bug we need to fix.
[import]uid: 7563 topic_id: 15793 reply_id: 58475[/import]
alright i finally found the issue, here is what i had coded to setup my physics.
---------SET PHYSICS---------------
local physics = require("physics")
physics.setGravity(0,9.8)
physics.setScale ( 111 )
physics.start(true)
turns out the issue was the placement of the line physics.setGravity(0,9.8)
i have now placed it after physics.start(true), and that seems to have cleared the issue up. what is interesting is that on my windows pc corona, i never saw an issue with this, i wonder if that line of code didn’t even affect my game. thank you for your help everyone [import]uid: 19620 topic_id: 15793 reply_id: 58758[/import]