Bug 32177 - F# App fails on iOS 9 Device
Summary: F# App fails on iOS 9 Device
Alias: None
Product: iOS
Classification: Xamarin
Component: General ()
Version: XI 8.99 (iOS9 previews)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-07-20 20:56 UTC by Cody Beyer (MSFT)
Modified: 2015-08-11 10:19 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Cody Beyer (MSFT) 2015-07-20 20:56:59 UTC
### Description

The following is a very simple F# snippet. This runs fine on iOS 8, however against iOS 9 using Preview (8.99) the app will crash at launch

### Sample


### Error


### Steps to Reproduce

1. Download Sample
2. Deploy to iOS 9 Device

### Expected Results

App will fully launch

### Actual Results

App fails with above error from Device Log

### Version

=== Xamarin Studio ===

Version 5.9.5 (build 5)
Installation UUID: 14e9db9d-4a59-440f-8c5b-890f54ec8c58
	Mono 4.0.3 ((detached/429313d)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 400030013

=== Apple Developer Tools ===

Xcode 7.0 (8163.8)
Build 7A152u

=== Xamarin.iOS ===

Version: (Business Edition)
Hash: 8443c2c
Branch: master
Build date: 2015-06-28 23:54:48-0400

=== Xamarin.Android ===

Version: (Business Edition)
Android SDK: /Users/codybeyer/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		2.3   (API level 10)
		4.0.3 (API level 15)
		4.4   (API level 19)
		5.0   (API level 21)
Java SDK: /usr
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

=== Xamarin Android Player ===

Version: Unknown version
Location: /Applications/Xamarin Android Player.app

=== Xamarin.Mac ===

Version: (Business Edition)

=== Build Information ===

Release ID: 509050005
Git revision: 8d5aa047f336e5129fff1b174a972021b087bd76
Build date: 2015-07-14 16:37:43-04
Xamarin addins: 3bc005cd1e150ae5f206c1cf76164f47f2f2b62c

=== Operating System ===

Mac OS X 10.10.4
Darwin Codys-Macintosh.local 14.4.0 Darwin Kernel Version 14.4.0
    Thu May 28 11:35:04 PDT 2015
    root:xnu-2782.30.5~1/RELEASE_X86_64 x86_64
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-08-11 10:19:47 UTC
This seems to work now [1], this is printed in the Application Output:

> 2015-08-11 16:18:46.106 RegexTest[892:335700] fnord!

[1] I get this, but it looks like it's after the code that was previously crashing: 
> Foundation.MonoTouchException: Objective-C exception thrown.  Name: NSInternalInconsistencyException Reason: Application windows are expected to have a root view controller at the end of application launch