Hoping you can help.
I am getting the following error on start up in an iOS simulator.
The app works fine in Android.
If I remove the Barcode xaml, the app starts up properly.
I have added my permission to my plist.
I upgraded to .net7 from 6 to no avail.
I upgraded the ZXIng reader to 0.1.0-preview.7 but could not get anything higher to work because I am targeting IOS 15.5.
2022-10-26 21:05:25.904431-0500 SMobile[14236:148430] [unspecified] container_system_group_path_for_identifier: error = ((container_error_t)98) NOT_CODESIGNED
Error getting system group container for systemgroup.com.apple.configurationprofiles: 98
Failed to get profile system group container path. Overriding with expected path: /Users/macminim1/Library/Developer/CoreSimulator/Devices/0B8BF9E6-58A1-430F-A8EB-0E8B421193A9/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=14236
SecTaskCopyDebugDescription: SMobile[14236]/0#-1 LF=0
SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=14236
SecTaskCopyDebugDescription: SMobile[14236]/0#-1 LF=0
SecTaskLoadEntitlements failed error=22 cs_flags=200, pid=14236
SecTaskCopyDebugDescription: SMobile[14236]/0#-1 LF=0
[ViewportSizing] maximumViewportInset cannot be larger than frame
ViewportSizing] minimumViewportInset cannot be larger than frame
System.ArgumentNullException: Value cannot be null. (Parameter 'device')
at at ObjCRuntime.ThrowHelper.ThrowArgumentNullException(String argumentName)
at at ObjCRuntime.NativeObjectExtensions.GetNonNullHandle(INativeObject self, String argumentName)
at at AVFoundation.AVCaptureDeviceInput..ctor(AVCaptureDevice device, NSError& error)
at at ZXing.Net.Maui.CameraManager.UpdateCamera()
at at ZXing.Net.Maui.CameraManager.UpdateCameraLocation(CameraLocation cameraLocation)
at at ZXing.Net.Maui.CameraBarcodeReaderViewHandler.<>c.<.cctor>b__24_1(CameraBarcodeReaderViewHandler handler, ICameraBarcodeReaderView virtualView)
at at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[ZXing.Net.Maui.ICameraBarcodeReaderView, ZXing.Net.MAUI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[ZXing.Net.Maui.CameraBarcodeReaderViewHandler, ZXing.Net.MAUI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v)
at at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
at at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
at at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
at at Microsoft.Maui.Handlers.ViewHandler`2[[ZXing.Net.Maui.ICameraBarcodeReaderView, ZXing.Net.MAUI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[UIKit.UIView, Microsoft.iOS, Version=15.4.700.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]].SetVirtualView(IView view)
at at Microsoft.Maui.Handlers.ViewHandler`2[[ZXing.Net.Maui.ICameraBarcodeReaderView, ZXing.Net.MAUI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[UIKit.UIView, Microsoft.iOS, Version=15.4.700.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065]].SetVirtualView(IElement view)
at at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
at at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
at at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
at at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view)
at at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view)
at at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
at at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
at at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
at at Microsoft.Maui.Handlers.LayoutHandler.SetVirtualView(IView view)
at at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.ILayout, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.LayoutView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view)
at at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
at at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
at at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
at at Microsoft.Maui.Handlers.ContentViewHandler.UpdateContent(IContentViewHandler handler)
at at Microsoft.Maui.Handlers.ContentViewHandler.MapContent(IContentViewHandler handler, IContentView page)
at at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IContentViewHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v)
at at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
at at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
at at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
at at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IView view)
at at Microsoft.Maui.Handlers.ContentViewHandler.SetVirtualView(IView view)
at at Microsoft.Maui.Handlers.ViewHandler`2[[Microsoft.Maui.IContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Platform.ContentView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].SetVirtualView(IElement view)
at at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler(IElementHandler value)
at at Microsoft.Maui.Platform.ElementExtensions.ToHandler(IElement view, IMauiContext context)
at at Microsoft.Maui.Platform.ElementExtensions.ToPlatform(IElement view, IMauiContext context)
at at Microsoft.Maui.Platform.ElementExtensions.ToUIViewController(IElement view, IMauiContext context)
at at Microsoft.Maui.Handlers.WindowHandler.MapContent(IWindowHandler handler, IWindow window)
at at Microsoft.Maui.PropertyMapper`2.<>c__DisplayClass5_0[[Microsoft.Maui.IWindow, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Handlers.IWindowHandler, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].<Add>b__0(IElementHandler h, IElement v)
at at Microsoft.Maui.PropertyMapper.UpdatePropertyCore(String key, IElementHandler viewHandler, IElement virtualView)
at at Microsoft.Maui.PropertyMapper.UpdateProperties(IElementHandler viewHandler, IElement virtualView)
at at Microsoft.Maui.Handlers.ElementHandler.SetVirtualView(IElement view)
at at Microsoft.Maui.Controls.Element.SetHandler(IElementHandler newHandler)
at at Microsoft.Maui.Controls.Element.set_Handler(IElementHandler value)
at at Microsoft.Maui.Platform.ElementExtensions.SetHandler(INativeObject nativeElement, IElement element, IMauiContext context)
at at Microsoft.Maui.Platform.ElementExtensions.SetWindowHandler(UIWindow platformWindow, IWindow window, IMauiContext context)
at at Microsoft.Maui.Platform.ApplicationExtensions.CreatePlatformWindow(IApplication application, UIWindowScene windowScene, NSDictionary[] states)
at at Microsoft.Maui.Platform.ApplicationExtensions.CreatePlatformWindow(IUIApplicationDelegate platformApplication, IApplication application, UIApplication uiApplication, NSDictionary launchOptions)
at at Microsoft.Maui.MauiUIApplicationDelegate.FinishedLaunching(UIApplication application, NSDictionary launchOptions)
at at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass)
at SMobile.Program.Main(String[] args) in /Users/macminim1/Projects/Sorted/SMobile/SMobile/Platforms/iOS/Program.cs:13
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:b="clr-namespace:Microsoft.AspNetCore.Components.WebView.Maui;assembly=Microsoft.AspNetCore.Components.WebView.Maui"
xmlns:local="clr-namespace:SMobile"
xmlns:data="clr-namespace:SMobile.Data"
xmlns:zxing="clr-namespace:ZXing.Net.Maui.Controls;assembly=ZXing.Net.MAUI"
x:Class="SMobile.MainPage"
BackgroundColor="{DynamicResource PageBackgroundColor}">
<ContentPage.Resources>
<data:ShowQrReaderConverter x:Key="ShowQrReaderConverter"/>
<data:ShowFrCapturingConverter x:Key="ShowFrCapturingConverter"/>
</ContentPage.Resources>
<AbsoluteLayout>
<b:BlazorWebView HostPage="wwwroot/index.html"
AbsoluteLayout.LayoutBounds="0, 0, 1, 1"
AbsoluteLayout.LayoutFlags="All">
<b:BlazorWebView.RootComponents>
<b:RootComponent Selector="#app" ComponentType="{x:Type local:Main}" />
</b:BlazorWebView.RootComponents>
</b:BlazorWebView>
<!-- QR Reader -->
<AbsoluteLayout
x:Name="absLayout"
Margin="0,334"
BackgroundColor="Beige"
HeightRequest="{Binding availableQrReaderHeight}"
WidthRequest="{Binding availableQrReaderWidth}"
>
<AbsoluteLayout.TranslationX>
<MultiBinding Converter="{StaticResource ShowQrReaderConverter}">
<Binding Path="CardToggle" />
<Binding Path="qrReaderDetecting" />
<Binding Path="AppState.ShootMode" />
</MultiBinding>
</AbsoluteLayout.TranslationX>
<zxing:CameraBarcodeReaderView
x:Name="barcodeReader"
IsDetecting="{Binding qrReaderDetecting}"
IsVisible="{Binding qrReaderVisible}"
IsTorchOn="False"
BarcodesDetected="CameraBarcodeReaderView_BarcodesDetected"
>
</zxing:CameraBarcodeReaderView>
</AbsoluteLayout>
</AbsoluteLayout>
</ContentPage>