Can no longer build for iOS (Corona crashes)

I’m getting close to being able to release my first game but Corona no longer seems to be able to build for iOS any more.

I’ve been using the last public build and that’s where the problem started, but I’ve updated to the latest daily build and I’ve also deleted Corona and did a reinstall and the same problem is still happening.

The build process seems to take a very long time as well (about 9 minutes for iOS but Android builds very quickly).

I’d be incredibly grateful if anyone could help as we were planning to submit to the app store on Friday!

The exception reported is here:

/Users/scott/Desktop/SSFinalBuilds/shakinsafari.app: replacing invalid existing signature codesign\_allocate: object: /Users/scott/Desktop/SSFinalBuilds/shakinsafari.app/shakinsafari malformed object (unknown load command 9) /Users/scott/Desktop/SSFinalBuilds/shakinsafari.app: object file format unrecognized, invalid, or unsuitable 2012-08-22 18:47:53.551 Corona Simulator[14890:1103] Warning: Cound not find the tool: Validation Warning: Cound not find the tool: Validation2012-08-22 18:47:53.552 Corona Simulator[14890:1103] validationTool: (null) 2012-08-22 18:47:53.552 Corona Simulator[14890:1103] -[\_\_NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: \_NSTaskExecutablePath) 2012-08-22 18:47:53.555 Corona Simulator[14890:1103] ( 0 CoreFoundation 0x00007fff87484f56 \_\_exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff84bf7d5e objc\_exception\_throw + 43 2 CoreFoundation 0x00007fff87484d8a +[NSException raise:format:arguments:] + 106 3 CoreFoundation 0x00007fff87484d14 +[NSException raise:format:] + 116 4 CoreFoundation 0x00007fff87441c4b -[\_\_NSCFDictionary setObject:forKey:] + 219 5 Foundation 0x00007fff8e4d0e02 -[NSConcreteTask setLaunchPath:] + 191 6 Corona Simulator 0x000000010000a1df Corona Simulator + 41439 7 Corona Simulator 0x000000010000c44f Corona Simulator + 50255 8 CoreFoundation 0x00007fff8747470d -[NSObject performSelector:withObject:] + 61 9 AppKit 0x00007fff8a430f7e -[NSApplication sendAction:to:from:] + 139 10 AppKit 0x00007fff8a430eb2 -[NSControl sendAction:to:] + 88 11 AppKit 0x00007fff8a430ddd -[NSCell \_sendActionFrom:] + 137 12 AppKit 0x00007fff8a4302a0 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 2014 13 AppKit 0x00007fff8a4affc4 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 489 14 AppKit 0x00007fff8a42eeaa -[NSControl mouseDown:] + 786 15 AppKit 0x00007fff8a3fa348 -[NSWindow sendEvent:] + 6306 16 AppKit 0x00007fff8a393a55 -[NSApplication sendEvent:] + 5593 17 AppKit 0x00007fff8a32a0c6 -[NSApplication run] + 555 18 AppKit 0x00007fff8a5a6244 NSApplicationMain + 867 19 Corona Simulator 0x00000001000018d4 Corona Simulator + 6356 20 ??? 0x0000000000000001 0x0 + 1 ) [import]uid: 100713 topic_id: 30151 reply_id: 330151[/import]

What version of Mac are you running.
What version of Xcode?
Do you have multiple versions of Xcode installed?
What does your xcode-select -print-path say?
Can you build any of the sample projects?
[import]uid: 7563 topic_id: 30151 reply_id: 120784[/import]

Thanks for getting back to me.

To answer your questions:

What version of Mac are you running?

Lion

What version of Xcode?
Do you have multiple versions of Xcode installed?

Turns out that I do have multiple versions. I have 4.4.1 and 3.1.4 - I could try deleting the older one

What does your xcode-select -print-path say?

/Developer - which I think might the the problem as I believe that’s where the older version of XCode is located

Can you build any of the sample projects?

I just tried to build the clock and I got exactly the same error
I’m guessing this is a problem linked to multiple copies of XCode so I’ll uninstall the older and report back. [import]uid: 100713 topic_id: 30151 reply_id: 120844[/import]

I’ve removed the old version of XCode and it now seems to build the sample project. I haven’t been able to test it on a device as I’m at work but it looks much better now.

The build gives me this message:

error: can’t exec ‘/Developer/usr/bin/xcodebuild’ (No such file or directory)
2012-08-23 11:26:46.042 Corona Simulator[23085:1103] xcrun xcodebuild -version failed to run. xcode-select is likely misconfigured.

But it then seems to go on and build the app OK - so I don’t know if this is something that I should be concerned about. [import]uid: 100713 topic_id: 30151 reply_id: 120846[/import]

What version of Mac are you running.
What version of Xcode?
Do you have multiple versions of Xcode installed?
What does your xcode-select -print-path say?
Can you build any of the sample projects?
[import]uid: 7563 topic_id: 30151 reply_id: 120784[/import]

Thanks for getting back to me.

To answer your questions:

What version of Mac are you running?

Lion

What version of Xcode?
Do you have multiple versions of Xcode installed?

Turns out that I do have multiple versions. I have 4.4.1 and 3.1.4 - I could try deleting the older one

What does your xcode-select -print-path say?

/Developer - which I think might the the problem as I believe that’s where the older version of XCode is located

Can you build any of the sample projects?

I just tried to build the clock and I got exactly the same error
I’m guessing this is a problem linked to multiple copies of XCode so I’ll uninstall the older and report back. [import]uid: 100713 topic_id: 30151 reply_id: 120844[/import]

I’ve removed the old version of XCode and it now seems to build the sample project. I haven’t been able to test it on a device as I’m at work but it looks much better now.

The build gives me this message:

error: can’t exec ‘/Developer/usr/bin/xcodebuild’ (No such file or directory)
2012-08-23 11:26:46.042 Corona Simulator[23085:1103] xcrun xcodebuild -version failed to run. xcode-select is likely misconfigured.

But it then seems to go on and build the app OK - so I don’t know if this is something that I should be concerned about. [import]uid: 100713 topic_id: 30151 reply_id: 120846[/import]