we have a serious issue with unity IOS.
We have a variable IMyInterface variable;
when we call variable.GetType() it initially tells us "IMyInterface".....
after a while variable.GetType() = "string"....
It is not possible to set the variable to string because this would be a type cast error. --> it has to be an error in the runtime. Our guess is that somehow something overwrites the memory with something wrong.
If we hold a second reference it still tells us "IMyInterface"....
If we execute the same code on Windows,Mac or even the IPhone Simulator.. it works.
I allready talked to a developer of monotouch but they could only tell me that the problem most likely is the AOT Runtime.
The Problem does not happen in a small code sample, and we could not figure out wich part of the system creates the problem. This is not the only strange thing that happens. Additionaly some function calls don't seem to do anything after a while...
Any tips or AOT runtime settings that might help to fix this problem? ANY Ideas?
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
4 People are following this question.
ios: 2 function calls on the same interface, one working... the other function call doing literally nothing
Unity Mono AOT iOS failure for generic method
How to make external C# dll library loadable (reflection) on iPhone?
Is it possible to use LUA or JS to bypass AOT limitations on iOS?
PtrToStructure with array fields on iOS (ie AOT only mode)