Mopups
Mopups copied to clipboard
System.PlatformNotSupportedException is thrown when showing the popup in iOS
I tried to show the popup in my iPad 16.1 Simulator and the app crashes with the following message
System.PlatformNotSupportedException: Operation is not supported on this platform.
at Mopups.Services.PopupNavigation.<GeneratePopupPlatform>g__PullPlatformImplementation|18_0()
at Mopups.Services.PopupNavigation.GeneratePopupPlatform()
2023-03-23 13:55:35.521484+0530 Temp[13237:201425] at Mopups.Services.PopupNavigation.<>c.<.cctor>b__25_0()
at System.Lazy`1[[Mopups.Interfaces.IPopupPlatform, Mopups, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null]].PublicationOnlyViaFactory(LazyHelper initializer)
2023-03-23 13:55:35.521674+0530 Temp[13237:201425] at System.Lazy`1[[Mopups.Interfaces.IPopupPlatform, Mopups, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null]].CreateValue()
at System.Lazy`1[[Mopups.Interfaces.IPopupPlatform, Mopups, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null]].get_Value()
2023-03-23 13:55:35.521776+0530 Temp[13237:201425] at Mopups.Services.PopupNavigation..ctor()
at Mopups.Services.MopupService.CreatePopupNavigation()
at Mopups.Services.MopupService.<>c.<.cctor>b__10_0()
2023-03-23 13:55:35.521892+0530 Temp[13237:201425] at System.Lazy`1[[Mopups.Interfaces.IPopupNavigation, Mopups, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null]].PublicationOnlyViaFactory(LazyHelper initializer)
at System.Lazy`1[[Mopups.Interfaces.IPopupNavigation, Mopups, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null]].CreateValue()
2023-03-23 13:55:35.521999+0530 Temp[13237:201425] at System.Lazy`1[[Mopups.Interfaces.IPopupNavigation, Mopups, Version=1.1.1.0, Culture=neutral, PublicKeyToken=null]].get_Value()
at Mopups.Services.MopupService.get_Instance()
at Temp.MainPage.OnCounterClicked(Object sender, EventArgs e) in /Users/rthanga1/Official/Samples/temp/Temp/Temp/MainPage.xaml.cs:line 22
I am seeing the same issue but not on a simulator. When I deploy a Debug build to my iPad everything works properly. It is the same if I deploy a Release build, too but only if I compile and release from VS 2022 on Windows through my Macbook onto the iPad. If I deploy through Azure Devops then I get this same exception. @jsramraj did you ever get a solution to this?
Oh this might be regarding issues with simulator builds in a different issue.
Could you download the repo and use it as a shared project instead of having it through nuget.
Once you have done that, can you play around with it a bit see what exception is thrown?
Oh this might be regarding issues with simulator builds in a different issue.
Could you download the repo and use it as a shared project instead of having it through nuget.
Once you have done that, can you play around with it a bit see what exception is thrown?
Hi @LuckyDucko I actually have done that. I posted it here Platform Not Supported on iOS Release
I am having exact same issue. ios is unable to compile using "REAL Device"