Beta 7 - App doesn't start in iPhone Simulator

30 replies [Last post]
Alwayk
User offline. Last seen 24 weeks 1 day ago. Offline
Joined: 11 Jun 2010

As I wrote on the Beta 7 release thread, my game (built with Corona Beta 7) doesn't work in the iPhone simulator.
Is it possible that since I'm using Xcode with iOS 4, the build doesn't work for compatibility reasons?

Replies

Eric
User offline. Last seen 1 year 9 weeks ago. Offline
Joined: 23 Jun 2009

I logged case #448, Xcode simulator build doesn't work for Xcode 3.2.3 with OS 4.0.

If you are having a problem with the simulator, please report:
- Xcode version (from about)
- Xcode Simulator version (from about)
- Any output in Corona Terminal

Thanks!

OderWat
User offline. Last seen 28 weeks 17 hours ago. Offline
Joined: 4 Jun 2010

Xcode 3.2.3 (64 Bit)

iPhone Simulator 4.0 (211.1)

Last lines in terminal:

1
2
3
4
/Users/xxx/Desktop/xxx.app: object file format invalid or unsuitable
2010-07-30 16:41:39.306 Corona Simulator[29317:903] App Spec: <DTiPhoneSimulatorApplicationSpecifier 0x510de0> specified by path /Users/xxx/Desktop/xxx.app
2010-07-30 16:41:39.307 Corona Simulator[29317:903] Version ((null)) not found. Using default root.
2010-07-30 16:41:39.307 Corona Simulator[29317:903] SDK Root: <DTiPhoneSimulatorSystemRoot 0x563690> path=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk version=4.0 name=Simulator - iPhone OS 4.0

Alwayk
User offline. Last seen 24 weeks 1 day ago. Offline
Joined: 11 Jun 2010

Eric you said that Xcode simulator build doesn't work for Xcode 3.2.3 with iOS 4, and I have it as most of us. ;)

Can you make it compatible with iOS 4 (in simulator)?

EDIT: My report and specs are the same OderWat wrote.

fpassa's picture
fpassa
User offline. Last seen 22 hours 10 min ago. Offline
Joined: 17 Sep 2009

Eric,

I think all of us are obligated to be on Xcode 3.2.3 with iOS 4.0 according to Apple updating rules, so you should provide CORONA SDK according to that, shouldn´t you?

Flavio.

OderWat
User offline. Last seen 28 weeks 17 hours ago. Offline
Joined: 4 Jun 2010

Well I think eric just made that observation.. not telling that this is the reason.

Obviously every developer was and is forced to upgrade to the newest versions of the developer environment.

If they did not test that... I am really disappointed :)

Alwayk
User offline. Last seen 24 weeks 1 day ago. Offline
Joined: 11 Jun 2010

Oh! Okay... So I misunderstood.

OderWat
User offline. Last seen 28 weeks 17 hours ago. Offline
Joined: 4 Jun 2010

Dunno... I really hope that they did not miss to test their stuff with the current Xcode... That would be very short sighted :)

jwwtaker
User offline. Last seen 3 hours 9 min ago. Offline
Joined: 28 Apr 2010

i'm building an iPad app, not iPhone so its not 4.0

OderWat
User offline. Last seen 28 weeks 17 hours ago. Offline
Joined: 4 Jun 2010

Well it is documented that it does not yet works for iPad currently!

jwwtaker
User offline. Last seen 3 hours 9 min ago. Offline
Joined: 28 Apr 2010

oh, where do you see documentation for beta 7? i couldnt find any included with my download (the PDFs that were in the older versions are missing)

OderWat
User offline. Last seen 28 weeks 17 hours ago. Offline
Joined: 4 Jun 2010

You find the releasenotes here... at the "bottom" it also lists some of the more important things about the new memory management:

http://developer.anscamobile.com/downloads/beta

Building for the Xcode Simulator only works for iPhone (3.0) builds. It does not yet work for iPad.

BTW: Still no style for "< quote>" ... tell it the forum admins!

Alwayk
User offline. Last seen 24 weeks 1 day ago. Offline
Joined: 11 Jun 2010

Release notes. Under "Known Issues":

Building for the Xcode Simulator only works for iPhone (3.0) builds. It does not yet work for iPad.

;)

Eric
User offline. Last seen 1 year 9 weeks ago. Offline
Joined: 23 Jun 2009

The issue with building for Xcode simulator for iPhone OS 4.0 is fixed. Note that this does indeed require Xcode 3.2.3, it will not work on 3.2.2 or before. This was a server change so you don't need to re-download. Please try again and let us know what you find out!

d3mac123
User offline. Last seen 1 week 5 days ago. Offline
Joined: 12 Feb 2010

Perfectly working... thanks!

dklikinteractiv
User offline. Last seen 36 weeks 3 days ago. Offline
Joined: 15 Apr 2010

Am I missing something ?
My app doesn't launch and always return to the home screen in the xcode simulator...

I'm new to this tool, so maybe the error is obvious. Can somebody tell me please ?

The last lines in the terminal are :
2010-08-02 11:18:09.378 Corona Simulator[4381:903] SDK Root: path=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk version=3.0 name=Simulator - iPhone OS 3.0

Thanks in advance

Eric
User offline. Last seen 1 year 9 weeks ago. Offline
Joined: 23 Jun 2009

@dklikinteractiv, what version of Xcode are you using? You need to use 3.2.3.

siriodev
User offline. Last seen 17 weeks 6 days ago. Offline
Joined: 4 Aug 2009

Hi
I try to build an Ipad Application for XCode Simulator with beta 7 but it quit immediatly when i try to lunch it on the simulator

this is my configuration

Version: 3.2 (10M2262)
Location: /Developer
Applications:
Xcode: 3.2.3 (1688)
Interface Builder: 3.2.3 (788)
Instruments: 2.7 (2529)
Dashcode: 3.0.1 (330)
SDKs:
Mac OS X:
10.5: (9L31a)
10.6: (10M2262)
iPhone OS:
3.2: (7B367)
4.0: (8A293)
iPhone Simulator:
3.2: (7W367a)
4.0: (8A293)

Alwayk
User offline. Last seen 24 weeks 1 day ago. Offline
Joined: 11 Jun 2010

iPad apps don't work in Xcode simulator yet! Guys, you should always read the release notes when you download a new beta! ;)

siriodev
User offline. Last seen 17 weeks 6 days ago. Offline
Joined: 4 Aug 2009

ops.. I miss it .... thanks

Alwayk
User offline. Last seen 24 weeks 1 day ago. Offline
Joined: 11 Jun 2010

You're welcome! :)

anovice
User offline. Last seen 31 weeks 6 days ago. Offline
Joined: 6 Feb 2010

Does this also mean that you can't build for device (iPad) without the app crashing?

Unfortunately, I can't. Crashes on startup.

Tom
User offline. Last seen 40 min ago. Offline
Ansca Staff
Joined: 13 Jul 2010

Currently, the Xcode iPad simulator is not supported in Beta 7. You should be able to build for the actual iPad device without any problems.

Are you having problems with the iPad build?

-Tom

anovice
User offline. Last seen 31 weeks 6 days ago. Offline
Joined: 6 Feb 2010

Tom - I did a bit more digging and it seems to relate to this issue I've posted as #1643

Cheers! :-)

fdi777's picture
fdi777
User offline. Last seen 23 weeks 3 days ago. Offline
Joined: 13 Apr 2010

App Built for iPhone Refusing to Start in Xcode simulator and the iPhone 3GS.
App works only in Corona Simulator

Details

Beta 7 Corona

Xcode 3.2.3 iOS4.0.1 SDK
iPhone 3GS iOS4.0.1

Build for Xcode Simulator, 3.0
Compile Details for Simulator in Terminal

2010-08-11 23:13:30.438 Corona Simulator[23173:903] App Spec: specified by path /Users/kori/Desktop/TestGame.app
2010-08-11 23:13:30.442 Corona Simulator[23173:903] Version ((null)) not found. Using default root.
2010-08-11 23:13:30.442 Corona Simulator[23173:903] SDK Root: path=/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.0.sdk version=4.0 name=Simulator - iPhone OS 4.0

Compile Details for Device

Eric
User offline. Last seen 1 year 9 weeks ago. Offline
Joined: 23 Jun 2009

@fdi777, do you mean that any app you build won't work, or a specific one? Can you send sample code to support@?

fdi777's picture
fdi777
User offline. Last seen 23 weeks 3 days ago. Offline
Joined: 13 Apr 2010

I will do a bit more tests tonight and get back with some code. I think any code won't work. It is not giving any crash bugs in the organizer console log either.

But it works in Corona Simulator. So maybe it is my phone. I will test it on another phone and see.

My phone has 4.0.1 maybe that is the issue?

Eric
User offline. Last seen 1 year 9 weeks ago. Offline
Joined: 23 Jun 2009

Is there anything in the system Console?

Eric
User offline. Last seen 1 year 9 weeks ago. Offline
Joined: 23 Jun 2009

I opened an internal case #636 to investigate, btw.

fdi777's picture
fdi777
User offline. Last seen 23 weeks 3 days ago. Offline
Joined: 13 Apr 2010

Please disregard the bug.

I have realised what the issue is.

When "require" an external file, the file name needs to be the same.

Hence, if the file is gamescreen.lua, then you must require "gamescreen". If you put "GameScreen", it would work in Corona, but not anywhere else.

Would be good if the require becomes more explicit in the pre compile check.

carlos m. icaza's picture
carlos m. icaza
User offline. Last seen 9 hours 53 min ago. Offline
Ansca Staff
Joined: 22 Jun 2009

Thanks for the catch. We will make sure to document this

Thanks

Carlos

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.