Hi,
I have built my current project with Unity 5.0.1 and Xcode 6 and deployed to a test device. However, when running the first level of the game, I get a strange null reference exception that I don’t get during testing in Editor, Android build or when building for 32-bit (mono rather than IL2CPP). Here is the error message from Xcode during running on the device:
Unloading 32 unused Assets to reduce memory usage. Loaded Objects now: 25672.
Total: 102.572128 ms (FindLiveObjects: 8.138875 ms CreateObjectMapping: 7.412916 ms MarkObjects: 82.381958 ms DeleteObjects: 4.629041 ms)
NullReferenceException: A null value was found where an object instance was required.
at UIImageButton.OnPress (Boolean pressed) [0x00000] in :0
at GridManager.Select (.Tile ht) [0x00000] in :0
at Tile.Select () [0x00000] in :0
at UnitControl.SelectNexUnit (.Faction faction) [0x00000] in :0
at UnitControl.SwitchToNextUnitInTurn () [0x00000] in :0
at UnitControl.OnNextTurn () [0x00000] in :0
at GameControlTB+NextTurnHandler.Invoke () [0x00000] in :0
at GameControlTB+NextTurnHandler.Invoke () [0x00000] in :0
at GameControlTB+NextTurnHandler.Invoke () [0x00000] in :0
at GameControlTB+NextTurnHandler.Invoke () [0x00000] in :0
at GameControlTB+NextTurnHandler.Invoke () [0x00000] in :0
at GameControlTB+NextTurnHandler.Invoke () [0x00000] in :0
at GameControlTB+NextTurnHandler.Invoke () [0x00000] in :0
at GameControlTB+NextTurnHandler.Invoke () [0x00000] in :0
at UIImageButton.OnPress (Boolean pressed) [0x00000] in :0
at GameControlTB+c__Iterator25.MoveNext () [0x00000] in :0
at Replacements.RemotingServices.CreateClientProxy (System.Type objectType, System.String url, System.Object[ ] activationAttributes) [0x00000] in :0
Replacements.RemotingServices:CreateClientProxy(Type, String, Object[ ])
(Filename: currently not available on il2cpp Line: -1)
*** end of error message
I don’t use Replacements.RemotingServices.CreateClientProxy() anywhere in my original code. Seems to be specific to il2cpp … especially considering the last line of the message. Can anyone please help me determine whether this is a new issue or has this already been identified? I have not yet opened a bug report. I wanted to get feedback form the community before doing so. Any help would be greatly appreciated … the whole il2cpp process is something that confuses me greatly.