Game Development Community

Lion / XCode 4.3.2 / Deploy to iOS iPOD 3.1.3 device fails

by Andy Hawkins · in iTorque 2D · 07/31/2012 (9:29 pm) · 3 replies

Here's the first error.

Tue Jul 31 22:27:19 unknown iTorque2DGame[302] <Error>: *** -[UIScreen scale]: unrecognized selector sent to instance 0x819710
The crash log is here...www.drewfx.com/Torque/iPhone/iOSDevice313_crashLog.rtf

Here's the console log too...www.drewfx.com/Torque/iPhone/iOSDevice313_ConsoleLog.rtf

I've found this forum that addresses it but it appears they fixed it for their engine only - they say they've fixed it, but no clue as to how. Should the iTorque2D devs here at GG be able to fix this?

groups.google.com/forum/?fromgroups#!topic/rhomobile/WaykhnkoKCs

#1
08/01/2012 (4:07 am)
Looks like it calls the method which gets scale for the Retina devices, which didn't exist in iOS 3.x, rather than first testing if the method exists. Wrap the test and other Retina code in "if([obj respondsToSelector:@selector(methodName:withEtc:)]) { … }" to avoid crashing on earlier iOS versions.
#2
08/04/2012 (8:36 am)
Well I got around that issue - somehow???? I think I set all the targets to iOS 3.0. But now I get this error.

Quote:
dyld: Library not loaded: /System/Library/Frameworks/CoreMotion.framework/CoreMotion
Referenced from: /var/mobile/Applications/70779520-6587-4EE1-BEC2-6BF8FBB17423/iTorque2DGame.app/iTorque2DGame
Reason: image not found

This only happens with 3.1.3 devices. The 4.2.1 iPod worked fine. Any ideas? Just upgrade all to 4.2.1 maybe??? What does that mean for earlier iPods?
#3
08/04/2012 (10:46 am)
@Andy - Could be a weak link problem. Go to build phases and find CoreMotion and set it to optional.