I got the following crash after switching back to the app:
-> applicationDidEnterBackground()
-> applicationWillEnterForeground()
-> applicationDidBecomeActive()
Program received signal: “SIGPIPE”.
I’ve never seen or heard about such error before, any ideas what could cause it? Googling revealed little, the only useful thing seemed to be this article that pretty much advices to ignore the whole error on the X-Code side.
I’m using Unity 3.2 and iOS version was 4.2.1 (iPad)
OK, I try to help, see if it works! (I’m at work so I’m telling this from my mind, could be a little different!)
Open your XCode project and then open the AppController.mm
In the AppController.mm locate all the methods you mentioned in your first post above (applicationWillEnterForeground, etc.)
And then locate a boolean variable named bNeedToRestoreIPhoneAudioSession or something like that, this one is always problematic! (Since UT switched to FMOD!) comment it out (don’t remember which method it was in but I’m thinking about applicationWillEnterForeground!!!) Compile, switch out and then switch back to your app, hope it solves your problem…
If you are using OpenFeint, etc. comment all the calls for UnitySetAudioSessionActive (true or false!)