Unity 5.2 ios IL2CPP build gives null reference exception
I'm using Unity3d 5.2 and Xcode 7 when I choose IL2CPP as scripting backend(and Universal for architecture) and run on Xcode. I get this error, several times at runtime:
(Filename: currently not available on il2cpp Line: -1)
NullReferenceException: A null value was found where an object instance was required.
at BaseMenuControl.baseUpdate () [0x00000] in :0
at MainMenu.Update () [0x00000] in :0
Where MainMenu inherits BaseMenuControl and BaseMenuControl inherits MonoBehaviour. Except this, there is nothing special. Is there anybody to help/guide me?
And it works fine on other platforms/without IL2CPP?
Perhaps you could try to figure out which reference is null in Base$$anonymous$$enuControl.baseUpdate, and then figure out what could possibly cause that reference to be null.
Yes it is fine on Android or Unity without building on any platform.
And hexagonius, what do you mean by saying "this should happen in Unity already"?
Your answer
Follow this Question
Related Questions
unity ios build error in xcode console Filename: currently not available on il2cpp line -1 0 Answers
Objects with animation disappear in IOS build. 6 Answers
iOS simulator, error when load resource 0 Answers
Unity 5.3.1p1, iOS, Xcode project build Error 1 Answer
xcode is giving error on running application on ipad device(Unity game) 0 Answers