iOS project Main.cs - on line: UIApplication.Main(args, null, "AppDelegate");
on Mac El Capitan 10.11
System.NullReferenceException: Object reference not set to an instance of an object
at Xamarin.Forms.Platform.iOS.Platform.DidAppear () [0x0000d] in <filename unknown>:0
at Xamarin.Forms.Platform.iOS.PlatformRenderer.ViewDidAppear (Boolean animated) [0x00006] in <filename unknown>:0
at 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/3412/3cf8aaed/source/maccore/src/UIKit/UIApplication.cs:79
at UIKit.UIApplication.Main (System.String args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/src/UIKit/UIApplication.cs:63
at ContactManager.iOS.Application.Main (System.String args) [0x00008] in /Users/apple1/Downloads/aws-dynamodb-sdk-18.104.22.168/samples/AWSSDK.DynamoDB.Sample/ContactManager.iOS/Main.cs:17
Steps to reproduce:
1. Download sample from dropbox and run in xamarin studio
2. Run iOS sample on simulator
3. enter FB credentials.
4. After login, you should see blank list of contact
5. App crashes with null reference.
More details about the app:
This is a simple MyContacts app provided with AWS SDK. This app authenticates user with Facebook and then displays data from contacts table hosted on AWS Cloud (DynamoDB). App crashes right after authentication. Interestingly this app works on my old iPhone5 but crashes on iPad 9.0 (newer iPad) also crashes on IPhone simulator. I tried to rebuild another sample with different table but encountered same issue.
Thanks for your help.
Sample link updated (zip created on Mac):
With the provided test application, I am unable to reproduce the issue. After entering FB credentials, the following error appears:
"App Not Setup: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions."
Thanks for looking into it. Do you have a FB email so I can grant you permission to the app? Alternatively I will send you a private message with temporary credentials. What is your email ID?
I am having the same problem with my app. I started using the Auth0 component in my Xamarin Forms app on iOS and Android. Everything works fine in Android and iOS simulator, but crashes on a real device every single time. :(
This is the same bug as reported in https://bugzilla.xamarin.com/show_bug.cgi?id=40911 - the repro project in 40911 demonstrates the issue without having to hit an outside service (e.g., Facebook).
*** This bug has been marked as a duplicate of bug 40911 ***