Game Development Community

iT2D 1.5.1 Preview - Device target has no info

by Conor O'Kane · in iTorque 2D · 06/28/2012 (12:44 am) · 3 replies

In Xcode if I select the simulator target then go to the info tab I can see the contents of /iTorque2D/iTorque2D-Info.plist, however if I select the device target the info tab is blank. Changes made to the summary for the device target (such as changing the icon or splash screen) have no effect and are not saved into the info.plist even though the file is listed in the build settings tab.

If I duplicate the simulator target and change the supported architectures to 'iphoneos' to get it to run on the device, I can build successfully, however it crashes on launch at this line:

platState.appReturn = UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
in main.mm

with this error:

Initial Command Line
0 : /var/mobile/Applications/C5DAD030-AA2A-4A2A-B3FD-4C9080A09818/DroneSwarm Command.app/DroneSwarm Command
Merged Command Line
0 : /var/mobile/Applications/C5DAD030-AA2A-4A2A-B3FD-4C9080A09818/DroneSwarm Command.app/DroneSwarm Command
exiting...
2012-06-28 17:40:25.409 DroneSwarm Command[6382:707] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x88d680> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.'
*** First throw call stack:
(0x35dd788f 0x3702c259 0x35dd75c5 0x371b9323 0x371b8e23 0x37192f09 0x35d367d3 0x35d37461 0x30cc41af 0x30cc594d 0x30bfb509 0x30a84893 0x30a7e8d7 0x30a4cc6b 0x30a4c70f 0x30a4c0e3 0x320ee22b 0x35dab523 0x35dab4c5 0x35daa313 0x35d2d4a5 0x35d2d36d 0x30a7da13 0x30a7ae7d 0x2c6d 0x2100)
terminate called throwing an exception(lldb)

As a result of this I cannot run on the device (iPad 1 with iOS 5.1).

#1
06/28/2012 (1:02 am)
I just checked the feature demo project and it has exactly the same issue. Attempting to build it for the device/iPad scheme results in these build errors:

error: make directory /Users/Conor/Library/Developer/Xcode/DerivedData/iTorque2D-hksxrthlntenfoctvjrvzxgbcvrl/Build/Products/Release-iphoneos/iTorque 2D.app/data/levels: File exists
error: couldn't remove '/Users/Conor/Library/Developer/Xcode/DerivedData/iTorque2D-hksxrthlntenfoctvjrvzxgbcvrl/Build/Products/Release-iphoneos/iTorque 2D.app/data' after command failed: Directory not empty
#2
06/28/2012 (6:09 am)
Looks like I missed including the plist for the device target and a change to the device target. I'll upload it as soon as I get to the office.
#3
06/28/2012 (7:03 am)
As a work-around for anyone who downloaded the first version, you can modify the 'simulator' target by adding 'iphoneos' in the supported platforms of the build settings, then switch the target to your hardware.

The crash I was getting in my first post seems to be unrelated to the missing .plist file.