iPhone OS 3.1.2 + Xcode 3.1.4 + Unity iPhone 1.5.1 Build pro

I’ve been having problems building my project with Xcode 3.1.4, for target Device 3.1.2|Release. This happened both with Unity 1.5.0 and 1.5.1

Here’s the error: ldr 12-bit displacement out of range (5976 max +/-4096) in _AudioQueueAddPropertyListener$stub in _AudioQueueAddPropertyListener$stub

This also happens with OS target 3.1

If I choose OS target 3.0, and Code signing for iPhone Developer, it works just fine. If I choose OS target 3.0, but choose Code signing for iPhone Distribution, the game builds, shows the splash screen, and then crashes with an error like: ‘Error launching remote program: failed to get the task for process 1702’ (the process number is different each time it runs).

I haven’t done any changes in X-code to the project, I left it as Unity puts it out. Any advice on this would be much appreciated.

Also, if you have any experience on which OS version would be best for submitting the game to the AppStore, please share (2.2.1/3.0/3.1/3.1.2)

Thank you!

If you are using snow leopard, then you need to have downloaded the latest iphone sdk with xcode 3.2 in order to develope for os 3.1.2.

Although apple do say this as a warning no-one seems to have read it :stuck_out_tongue:

Thanks, actually I’m not using the Snow Leopard OS.
Is that required for building on both 3.1 and 3.1.2?

Please submit bug report to Apple. This is their linker problem.

Try following set of actions:

  • hard reboot your iPhone/iPod
  • restart your Xcode (maybe whole Mac)
  • from Unity rebuild Xcode project from scratch (replace project).

I recommend to use lowest possible profile (2.0 / 2.2.1). This guarantees you widest available audience.

I am also having this error with a different code each time. My setup is very similar, but it used to work before I made some changes to the Xcode setup to add the adhoc distribution and whoala I can’t run the debugger no more. I am now trying to undo the ad hoc. I have a bit to learn methinks.

you can not run debugger on any deployment profile (adhoc / appstore). you can only run with debugging on the development profile

so when adding adhoc to the project ensure that you created an own configuration for it and didn’t apply it to “all configurations”