I'm getting this error when compiling my project and linking the Flurry Analytics library. Ony when compiling to the simulator. Compiling开发者_JS百科 to device works fine.
The error is: Undefined symbols: "__Unwind_Resume", referenced from: +[FlurryAPI setAppVersion:] in libFlurry.a(FlurryAPI.o)
I found someone saying the solution was to add "-cxx -lgcc_eh" to my build parameters and this also makes the error go away. However then I get:
The assembly mscorlib.dll was not found or could not be loaded. It should have been installed in the `/Developer/MonoTouch/Build/simulator/lib/mono/2.0/mscorlib.dll' directory.
when trying to run or debug the application in the simulator.
I hope someone can help as it would save much time if I was able to test in the simulator instead of installing on the device every time.
Best regards
Soren
For your main question just using --cxx should be enough, -lgcc_eh should not be required - but you already found that out by yourself. For references see http://ios.xamarin.com/Documentation/Linking_Native_Libraries
mscorlib.dll should not be loaded from a '2.0' directory. There's likely something in your code that does that (even if indirectly). A likely culprit is that you have some assemblies that were compiled against .NET 2.0 (the full framework) and not against MonoTouch 2.1-based profile.
Try removing, one by one, assemblies references in your project and rebuild it (you'll need to adjust your code to do so). Do this for all the binary assemblies (the ones you're not rebuilding from sources in the solution) and not provided by MonoTouch (i.e. the BCL).
Once you find the 'bad' assembly then replace it by one you have built yourself (compiled against MonoTouch-provided assemblies).
精彩评论