Strange error in XCode project (!is_wrapper assertion)

Hi!

I´m using Unity 3.4. When I try to run an iOS project that 5 minutes ago was functioning properly, XCode says this right after the game starts on the device (iPhone 4S with iOS 5.1):

  • Assertion at aot-runtime.c:1734, condition `!is_wrapper’ not met

It compiles just fine, but right after the Unity splash screen has appeared and the game is about to commence, it crashes.
I´ve tried to reset the project to where it was the last time it worked (just two lines of code) with no luck.

Has anyone seen this one before? thank you!

Edit: I just realised i posted in the wrong forum. This should be moved to iOS Development…

It´s 5.52 AM here, and i´ve solved it:

NEVER EVER use value-types as keys in a generic dictionary. Or in a list. This gave me the hint:

specifically:
Using generic types with value types as parameters (eg, List, List, List, etc) for serializable script properties.

Thing is, if you use (like me) a Dictionary<int,object> it won´t usually crash immediately. But it will silently creep in your project and make it explode at some point. I replaced it with Dictionary<StupidClassThatWrapsAnInteger, object> and the error was gone.