Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Created attachment 12150 [details]
Demo project to repro
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
var x = UIScreen.MainScreen.NativeScale;
return base.FinishedLaunching(app, options);
App will crash on var x declaration when running on iPhone 4 with iOS 7.
Mac OS X: 10.9.4
Xamarin Studio: 5.9.4 build 5
XCode: 6.2 (6776)
iPhone 4, iOS 7.1.2
at ObjCRuntime.Runtime.ThrowNSException (IntPtr ns_exception) [0x00000] in /Users/builder/data/lanes/1880/ef8c2f77/source/maccore/src/ObjCRuntime/Runtime.cs:167
at ObjCRuntime.Runtime.throw_ns_exception (IntPtr exc) [0x00000] in <filename unknown>:0
at (wrapper native-to-managed) ObjCRuntime.Runtime:throw_ns_exception (intptr)
at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string,intptr,intptr)
at UIKit.UIApplication.Main (System.String args, IntPtr principal, IntPtr delegate) [0x00005] in /Users/builder/data/lanes/1880/ef8c2f77/source/maccore/src/UIKit/UIApplication.cs:63
at UIKit.UIApplication.Main (System.String args, System.String principalClassName, System.String delegateClassName) [0x0001c] in /Users/builder/data/lanes/1880/ef8c2f77/source/maccore/src/UIKit/UIApplication.cs:46
at UIScreen_NativeScale.iOS.Application.Main (System.String args) [0x00008] in /Users/admin/Projects/UIScreen_NativeScale/iOS/Main.cs:17
Thanks for taking the time to submit this bug. Please repackage the repro so it's simply zipped and not wrapped twice and we'll take a look at it.
Created attachment 12160 [details]
Reapcked project to repro
I've repack demo proj
Thank you for taking the time to submit this report. After reviewing the description of this bug, we believe it no longer affects the current version of Xamarin.Forms. If you are still experiencing the issue after updating your packages, please reopen this report with an attached reproduction.
For your convenience, we have created some reproduction best practices viewable here: https://gist.github.com/jassmith/92405c300e54a01dcc6d
Xamarin Forms Team