Unity 4.0 IOS App crash, Unity 3.5 didn't crash

Hi,

I just upgraded to Unity 4.0, i got no errors in my project and building seems to go fine. But when the app launches it crashes after de splash screen.
I’m using Xcode 4.5.2, i do get some warnings in Xcode though:
Unity-iPhone.xcodeproj Missing “Default-568h@2x.png” launch image
Classes/iPhone_Sensors.mm:347:53: ‘locationServicesEnabled’ is deprecated: first deprecated in iOS 4.0
LibiPhone-lib.a(CharacterController.o) object file doesn’t contain DWARF debug information

And in the debug log in Xcode:
Symbol file /private/var/mobile/Applications/F6FE6D68-DA13-4E8B-A841-FD8EFEB61DBC/gameTest.app/Data/Managed/mscorlib.dll.mdb doesn’t match image /private/var/mobile/Applications/F6FE6D68-DA13-4E8B-A841-FD8EFEB61DBC/gameTest.app/Data/Managed/mscorlib.dll

Which i didn’t get in Unity 3.5. I checked the known issues topic and did everything (deleting derived data and deleting the app from my iPod touch 4G) stating there.

Settings:
Rendering:
Static Batching true
Dynamic batching true

Configuration:
Target Device: iPhone Only
Target Resolution: Native (default device resolution)
Graphics Level: OpenGL ES 2.0
Accelerometer Frequency: Disabled
Override iPod Music: False
Requires Persistent Wifi: False
Exit on suspend: False

Optimization
Api Compatibility Level: .net 2.0 subset
SDK Version: Device SDK
Target IOS Version: 4.3
Stripping Level*: Use micro mscorlib
Script call optimization: Slow and Safe
Optimize Mesh Data: True

Any help?

I found out that i did get the Xcode debug log error:
Symbol file /private/var/mobile/Applications/F6FE6D68-DA13-4E8B-A841-FD8EFEB61DBC/gameTest.app/Data/Managed/mscorlib.dll.mdb doesn’t match image /private/var/mobile/Applications/F6FE6D68-DA13-4E8B-A841-FD8EFEB61DBC/gameTest.app/Data/Managed/mscorlib.dll

don’t know what it means though

Changed the target SDK to 4.3 got a new Warning in Xcode:
ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in method_addresses from Developer/Xcode/DerivedData/Unity-iPhone-cnghauodaslmtaarirygjadwnxxb/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/Assembly-CSharp-firstpass.dll.o. To fix this warning, don’t compile with -mdynamic-no-pic or link with -Wl,-no_pie

I see similar warnings here and my app is also crashing on iOS after upgrading to 4 from 3.5. For me it’s happening during RPC invoke on a call that passes a NetworkViewID. :frowning:

Any support here pls?

when app crashes, open Xcode debugger console and type in “bt”, then post printed stack traces. Unity troubleshooting Manual page has more details on how to debug crashes : http://docs.unity3d.com/Documentation/Manual/TroubleShooting.html#iPhoneTroubleShooting

3.5 used to work fine here too. But every project I tried crashed after load screen now on Unity 4. Even a clean new one, with no asset package imported, being just a scene with a couple spheres.
I’m getting 3 warnings (except for the retina one) described here: http://forum.unity3d.com/threads/177657-Upgraded-to-4-1-2-from-3-5-6-getting-warnings-on-all-apps
Build and archive happens ok, and in that topic they are just ignoring it. My apps crashes after splash.
Unfortunately my macmini 2,1 can’t upgrade xcode to run with the device plugged in. So… are there some general hints you may think could apply?

You should check Xcode debugger console for error messages first.

Thanks for the reply. I don’t know how I should handle this since I did nothing new since everything was working fine on Unity 3.5.x
And I don’t use the mac for anything else, so I really did nothing else but the Unity upgrade.

These are the messages I’m getting:

But I see no connection to anything I could have wrong.

Here are my settings in Unity with the cleanest project possible:

I’m using a Macmini 2.1 with Snow Leopard. Xcode 4.2
Ipod touch 4th and Ipad 3 are both with ios 6.0.1.

Anything out of the place?

For future reference, I did found the problem and a workaround (update xcode, OS and hardware).

The problem (at least in my case) was with Unity new splash screen check. As I was using Xcode 4.2, restricted by Snow Leopard, restricted by system memory, Xcode did not have the latest splash screen option for retina display format. So when running the app, Unity was checking if I changed the splash screens outside Unity and would find that I did not have that one.

So in effect, Unity dropped support for Snow Leopard for iOS development with this DRM/bug. :frowning:
Commerce tying is really bothersome, specially about Apple. To have a DRM promote it, is just the icing on the cake.