The application don't run on the simulator in XCode

Hi
I Don’t run my app on simulator target (Unity-iPhone-simulator). I have error:
/…/Libraries/RegisterMonoModules.cpp:70:0 /…/Libraries/RegisterMonoModules.cpp:70: error: ‘mono_dl_register_symbol’ was not declared in this scope.
I used XCode 3.2.5 and SDK 4.2 don’t work it.
I used XCode 4.0.2 and SDK 4.3 don’t work it.
I change player settings SDK Version and Target iOS Version, but it’s don’t helped me.

Has any one been able to run the application in XCode in the simulator? It’s working?
Which player settings needs to be done in Unity that would run the application on the simulator?

Thanks!

Oh this problem… !! The solution was simple for me:

If you take a look in RegisterMonoModules.cpp you’ll see that “mono_dl_register_symbol” will only exist when NOT TARGET_IPHONE_SIMULATOR, which is the reason it says it’s not in the scope.

comment/remove the original declaration and paste it outside the condition, and that’s it :slight_smile: Solved!

Native plugins are currently not supported on simulator.