Preface: I am an iOS noob developer. This was my first attempt to export to the iPad 2. Result: Crash, Memory Violation I'm still reading FAQs and getting up to speed. But I must say, I was able to export this project to Android with zero effort. I'm surprised that iOS did not work better out of the box. I could use any tips. This is a simple scene. A mesh, mesh renderer with a material. Maybe a mesh collider. The material has a custom shader sure. I suppose my first test should be try the diffuse shader and see if that works.
Yes lets blame iOS! Things to try: - see if in build settings, you have slow and safe on (for testing) - is it an appended project or new? ensure simulator isn't ticked in xcode I didn't observe anything wrong that you did. What version os and what version xcode and what version unity and...! what version of the sdk are you using? Thats a lot of whats.
Using mobile/diffuse for all the materials didn't make any difference. It just stops on the following: Code (csharp): void DestroySurfaceGLES(EAGLSurfaceDesc* surface) { GLES_CHK( glDeleteRenderbuffersOES(1, &surface->renderbuffer) ); surface->renderbuffer = 0; GLES_CHK( glDeleteFramebuffersOES(1, &surface->framebuffer) ); surface->framebuffer = 0; DestroySurfaceMultisampleBuffersGLES(surface); } Thread 1: Program received signal: "EXC_BAD_ACCESS".
Looks like this is just an issue of using iOS5 when support it's still in development. Unity 3.4.1 PRO. iOS PRO Android PRO iOS 5 iPad 2
I did already have the default slow and safe setting on. I did notice the target iOS version was set to 3. I've set it to 4.3 latest. Trying that... ugh same result. Lion: XCode 4.2. Posted Date: October 12, 2011 Build: 4D199 Included iOS SDK: iOS 5 Included Mac SDK: Mac OS X 10.7
The solution appears to be to downgrade the iPad to 4.3. Downgrade the SDK. Downgrade XCode. Or... what wait for Unity to catch up. How long does it usually take Unity to catch up? Or do they have to do a new release?
not long, this is a vitally important issue. Could you please submit this bug then get the repro number, and post it in this forum? a mod will pick it up. Submit bug report inside unity, with details, and a link to this topic, there is a menu item... Lets get this thing nipped in the bud, it sounds like there shouldn't ever be a problem but there is.
this is weird , i tried out building on ipad2 with a simple scene using cube and mobile diffuse on it and i did not get any issue. the app launch as expected ipad 2 iOS 5 Xcode 4.2 unity 3.4.1 in build setting target is set to IOS latest, micro mscorlib, fast but no exception and i do a validate on Xcode, for the project, as when it come from unity it will learn about that. I just compiled without do any modification on the appController.mm, so just straight from build using replace. I will of course get a prob if i let autorotation in the build setting ( but a work around has been posted for this )
Whooo the move shaders work on the iPad. Niice! Lighting is dark. I'll have to modify an unlit shader to brighten things up. Thanks giyomu!
Alexey post a fix for this on the forum, http://forum.unity3d.com/threads/107265-ios5-and-unity-3.4.1-crash-on-auto-rotation-workaround Should be sticky tho cause it start to be off page ^^