Author Topic: [SOLVED] NGUI [ExecuteInEditMode] crashes iOS build under Unity 4.1.2  (Read 3061 times)

captain_geek

  • Guest
Doesn't seem like this has come up yet here, but Unity was crashing every time I went to build for iOS ... after some digging around I found this thread on the Unity forum:
http://forum.unity3d.com/threads/174123-Crash-immediately-upon-trying-to-build-to-Android

Couple of suggestions there, but when I went to try removing the [ExecuteInEditMode] statement I found that it was prevalent in the NGUI scripts. Commented all of these out and now my project builds correctly for iOS ...

Now I'm not sure when behaviour I have broken in the Unity editor with regards to NGUI but that will probably be less of a hassle than not being able to build to the iPad ...

Anyone else run into this?
« Last Edit: April 20, 2013, 05:50:51 PM by captain_geek »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI [ExecuteInEditMode] crashes iOS build under Unity 4.1.2
« Reply #1 on: April 17, 2013, 03:46:47 PM »
I ran into this when switching build targets to/from android. Solution is to start a new scene prior to switching targets and/or building.

captain_geek

  • Guest
Re: NGUI [ExecuteInEditMode] crashes iOS build under Unity 4.1.2
« Reply #2 on: April 17, 2013, 03:55:19 PM »
Thanks ... I'll give that a shot ... just reopened my scene and noticed that with that directive disabled I could not see any of the UI elements until I played the scene ...

captain_geek

  • Guest
Re: NGUI [ExecuteInEditMode] crashes iOS build under Unity 4.1.2
« Reply #3 on: April 17, 2013, 04:02:49 PM »
Yes, that worked ... thanks