MonoTouch Update Beta Chan / mono_handle_native_sigsegv - xamarin.ios

My app crashes on my device with the exception mono_handle_native_sigsegv
I read that this is fixed in 5.1.1+ betas. How can I update my MonoTouch to 5.1.1+?
Currently Im using MonoTouch 5.08 and MonoDevelop 2.8. I dont see the option to update on beta channels.
Thanks

in MD --> Preferences, under Updates, check the "unstable developer updates" and then select alpha or beta
MT 5.2.1 is the current beta, I believe.

Related

Warning MT1108 after ios update

How do I fix:
warning MT1108: Could not find developer tools for this 6.1.3 (10B329) device. Please ensure you are using a compatible Xcode version and then connect this device to Xcode to install the development support files.
I updated my iPad to new version of iOS and this started happening...I updated my xcode version to the latest stable version (Xcode 5, I believe)...I still have `xcode 4 on my computer how do I get this stop happening...
You'll need Xcode 4.6 - which was the version shipping support for the iOS 6.1 SDK. Xcode 4.5 shipped support for iOS6 while Xcode 5 previews (not stable) ships support for iOS7.
In general a later version will be ok, but sometimes the changes are too big (e.g. moving from gcc to clang) that this might not work. Also the NDA around iOS7 and Xcode5 means you're unlikely to get help here (or in other public forums).
So if you're developing for iOS 6.1 (the released, stable version of iOS) you should be using Xcode 4.6 (the stable tools/SDK) so you can deploy your applications to the appstore.

Facebook iOS SDK: App crashes right after starting with "Symbol not found: _ACFacebookAppIdKey." only in iOS 5

Symptoms: app crashes right after starting:
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x00000001, 0xe7ffdefe
Crashed Thread: 0
Dyld Error Message:
Symbol not found: _ACFacebookAppIdKey
Referenced from: /var/mobile/Applications/C9CCEC42-DD12-40D1-91EE-965A8AC37AE4/MyApp.app/MyApp
Expected in: /System/Library/Frameworks/Accounts.framework/Accounts
in /var/mobile/Applications/1234EC42-0012-40D1-1234-965A8AC31234/MyApp.app/MyApp
Dyld Version: 199.6
This problem is specific to the MonoTouch binding for the Facebook iOS SDK, and it only happens for iOS 5.0 and 5.1. It can be reproduced by simply running the sample project on an iOS 5 device.
There's a related SO question (Facebook SDK 3.1 for iOS - runs on iOS6, but crashes on iOS 5.x) which suggests making the framework optional. As far as I know, this cannot be done from Xamarin.iOS, but the LinkWith assembly attribute in the binding already has WeakFrameworks = "Accounts AdSupport Social", which I assume is the equivalent of making those frameworks optional in XCode. So, no help there.
The problem seems to be a bug in the MonoTouch binding, Xamarin.iOS, or the Facebook iOS SDK itself. Any ideas?
It can be solved very easily..
Click on your project Targets.
then go to summary
Under Linked Frameworks and Libraries
Change Required Option into Optional of three Frameworks are :
Social.framework
AdSupport.framework
Accounts.framework
Now you can also run and check your code on iPAD or iPHONE simulator 5 or 5.1
This is a known bug which has been fixed (but the fix hasn't reached any stable version of Xamarin.iOS yet - the bug report says it'll be included in the 6.2.2 release, but that didn't happen).
Currently the only known workaround is to use an older version of the Facebook SDK.

Develop for ios 4.2 on xcode 4.5

I've got one old ipod touch 2g which can be upgraded just to 4.2.1.
I also have xcode 4.5 which says:
Unsupported device Devices of type “iPod touch (2nd generation)” are
not supported by this version of Xcode.
Is there any way I can develop for this poor old device on my current version of xcode?
Thanks.
Go to your targets > summary > deployment target and set it to 4.3 or greater.
Go Here for earlier

Monotouch 5.0 and iOS 4.3 compatibility

I have got an application developed with Monotouch 4.0.7. This app is running on iPads with iOS 4.3.
Now, I want to migrate to the latest Monotouch version is 5.0. Will I be able to deploy my app on iPads with iOS 4.3? Or Monotouch 5.0 only for iOS 5.0?
Yes, it is possible to develop for iOS 4.3 (or even earlier iOS versions) with MonoTouch 5.0.
To set the minimum iOS version your app needs, go to the project's options, and in the iPhone Application page set Deployment Target to the minimum version.
Have in mind that MonoTouch will not tell you if you use iOS 5.0 API in your app. You can add iOS 5.0 features to your app, but you must not try to use those features on a lower version (here you can see how to accomplish this).
You can upgrade to Monotouch 5.x without any problems. In Monodevelop, change your SDK to 5.x
Just make sure your deployment target remains 4.3, if you still want to target that platform.
You will have to pay attention to not calling any methods that don't exist in 4.3.
If you want to have different/extended behavior on iOS 5 devices, you can check the OS version and use a different code branch.
Another small thing to be prepared for: iOS5 behaves differently in some situations. For instance if you are having hierarchical UIViewControllers, iOS5 will automatically call all UI events like ViewWillAppear(), even if you don't use the new UIViewControllery hierachy API.
What I want to say: test your app thoroughly on both iOS versions.

MonoTouch - .NET 4.0 on an iPhone

We've upgraded to MonoTouch 4.0 and the new MonoDevelop.
In order to get .NET 4.0 , do we need to enable a setting, or does MonoTouch automatically compile against the newest Mono ?
Everything has been working perfectly, iTunes has accepted all our apps, all without issue. We've released now nearly 70 apps made with MonoTouch and have thousands of users.
MonoTouch 4 requires that you have previously installed Mono shared runtime 2.10.1 in order to install it.
Once you have installed Mono runtime, MonoDevelop and of course ios 4.3 sdk now you can install monotouch 4, once installed you are now able to get Net 4 love by creating a new iphone solution :) (yes you dont have to modify any settings)
Hope this helps
Alex
As far as I can tell from MonoTouch's website ( http://monotouch.net/Releases/MonoTouch_4/MonoTouch_4.0.0 ), it says "Core Mono Runtime upgraded to Mono 2.10" so it looks like dmcs ( http://www.mono-project.com/Release_Notes_Mono_2.10 ) is included. I don't have MonoDevelop installed, but I might be able to help you out with my suggestion:
Look in Project -> Options -> Build -> General -> Runtime Version (I couldn't post more than 2 links since I'm a new user.)
I hope this answers your question.

Resources