Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

BottomSheet crashes iOS app on appearing #2

Open
varyamereon opened this issue Feb 10, 2024 · 0 comments
Open

BottomSheet crashes iOS app on appearing #2

varyamereon opened this issue Feb 10, 2024 · 0 comments

Comments

@varyamereon
Copy link

I am trying to test BottomSheet on iOS 17.2 in the simulator. I have implemented the bottom sheet as per the instructions in the Readme, and it looks the same as the sample apps. It seems to work fine on Android, but on iOS at InitializeComponent() on the ContentView I get this exception:

System.ArgumentNullException: Value cannot be null. (Parameter 'source')
   at ObjCRuntime.Runtime.ThrowException(IntPtr gchandle) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.cs:line 2594
   at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 60
   at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 94
   at AlternativeBottomSheetTest.Program.Main(String[] args) in /Users/wbeal/Code/AlternativeBottomSheetTest/AlternativeBottomSheetTest/Platforms/iOS/Program.cs:line 13
2024-02-10 13:24:32.551836+0100 AlternativeBottomSheetTest[33257:1418024] Unhandled managed exception: Value cannot be null. (Parameter 'source') (System.ArgumentNullException)
   at ObjCRuntime.Runtime.ThrowException(IntPtr gchandle) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.cs:line 2594
   at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 60
   at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:line 94
   at AlternativeBottomSheetTest.Program.Main(String[] args) in /Users/wbeal/Code/AlternativeBottomSheetTest/AlternativeBottomSheetTest/Platforms/iOS/Program.cs:line 13

Doesn't provide me with much of a description of what the issue is I'm afraid!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant