Issues running on device when targeting iPad only

I'm making a game targeting the iPad only, and I recently decided to make sure that's the only thing it will run on. The game runs perfectly fine on all targets I care about, (flash, cpp-win, cpp-osx, ios-devices and ios-simulator). So, I set this tag…

  • Forums
  • »
  • Bugs
  • »
  • Issues running on device when targeting iPad only
Viewing 1 to 3 (3 Total)
Issues running on device when targeting iPad only

grapefrukt

grapefrukt
Total Posts: 15
Joined: February 04, 2012

I'm making a game targeting the iPad only, and I recently decided to make sure that's the only thing it will run on. The game runs perfectly fine on all targets I care about, (flash, cpp-win, cpp-osx, ios-devices and ios-simulator).

So, I set this tag in my NMML to stop it from running on phone/touch iThings:


<ios devices="ipad" ></ios>

The game still compiles perfectly fine just as before. But now it will not launch nor copy over to the device. The "Debug appname" thing comes up in Xcodes log navigator after the build task, just as it normally does but it never actually logs anything. It just hangs around there until I relaunch Xcode.

I have restarted Xcode, my computer and my device, I have cleaned (including removing the entire bin folder) and regenerated the project multiple times.

This happens when my build is set to arm7 (as setting the ipad in the device setting will do). If I leave out this setting in the NMML and simply edit the xcode project after generating it, it will instead target arm6 and runs fine. But, seeing as this won't please the Apple overlords when time comes to submit, I'd like to get to the bottom of this.

What am I doing wrong?

I am running Xcode 4.2, compiling using the 5.0 SDK for an iPad running iOS 5.0.1

haxelib list gives this:

actuate: 1.35 [1.38]
gm2d: 1.0 [1.1]
hxcpp: 2.08.0 2.08.2 [2.08.3]
jeash: [0.8.7]
nme: 3.1.1 3.2.0 [3.3.0]
polygonal: [1.22]
swf: 1.07 1.10 [1.11]

Tags:
Posted on April 09, 2012 at 6:39 PM

singmajesty

singmajesty
Total Posts: 2141
Joined: August 25, 2011

Re: Issues running on device when targeting iPad only

What happens when you use...?

<ios binaries="fat" devices="ipad" />

There's a minor bug in 3.3.0 that specifies "arm7" instead of "armv7" when you target the armv7 architecture only. If you specify a "fat" binary, it removes this tag and may compile and run properly.

I'd recommend you also consider just giving SVN a go, but currently it won't compile without haxe 2.09, which is to be released at WWX soon

Posted on April 09, 2012 at 8:21 PM

grapefrukt

grapefrukt
Total Posts: 15
Joined: February 04, 2012

Re: Issues running on device when targeting iPad only

Oh! Specifying fat and ipad still gives me only armv7 architectures, but I did find the problem.

The UIRequiredDeviceCapabilities value in the .plist file is indeed set to arm7 instead of armv7 (ie missing a v), if I manually correct that it does run again.

It's surprising that this gives no errors, or feedback of any kind, but, Xcode does move in mysterious ways.

All in all, I'm happy!

Posted on April 10, 2012 at 2:46 AM