using Plugin.Maui.Pedometer;
namespace Wodia2;
public partial class MainPage : ContentPage
{
readonly IPedometer pedometer;
public MainPage(IPedometer pedometer)
{
InitializeComponent();
this.pedometer = pedometer;
pedometer.ReadingChanged += Pedometer_ReadingChanged;
IsSupported.Text = $"Is supported: {pedometer.IsSupported}";
StartStopMonitoring.IsEnabled = pedometer.IsSupported;
}
void Pedometer_ReadingChanged(object sender, PedometerData e)
{
MainThread.InvokeOnMainThreadAsync(() =>
{
StepCount.Text = e.NumberOfSteps.ToString();
LastUpdate.Text = $"Last update: {e.Timestamp}";
});
}
void Button_Clicked(object sender, EventArgs e)
{
if (!pedometer.IsMonitoring)
{
pedometer.Start();
}
else
{
pedometer.Stop();
}
UpdateIsMonitoring();
}
void UpdateIsMonitoring()
{
IsMonitoring.Text = $"Is monitoring: {pedometer.IsMonitoring}";
}
}
mainpage.xaml
<?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"
x:Class="Wodia2.MainPage">
<VerticalStackLayout Spacing="10">
<Label x:Name="IsSupported" Text="" HorizontalOptions="Center" Margin="0,10,0,0" />
<Label x:Name="IsMonitoring" Text="Is monitoring: False" HorizontalOptions="Center" />
<Button x:Name="StartStopMonitoring" Text="Start/Stop" Clicked="Button_Clicked" Margin="20,20,20,0"/>
<Label Text="Steps taken 🥾" HorizontalOptions="Center" FontSize="25" />
<Label x:Name="StepCount" Text="0" HorizontalOptions="Center" FontSize="25" />
<Label x:Name="LastUpdate" HorizontalOptions="Center" />
</VerticalStackLayout>
</ContentPage>
tried添加以下内容:
<key>NSMotionUsageDescription</key>
<string>This app wants to track your pedometer readings</string>
Intoprivacyinfo.xcprivacy,但即使其中包括它仍然崩溃。当我单击按钮开始步骤计数时,请解决此错误:
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.IO.FileSystem.AccessControl.dll [External]
2025-03-13 13:48:44.534 Xamarin.PreBuilt.iOS[7019:1181351] Could not resolve assembly System.IO.IsolatedStorage.resources, Version=9.0.0.0, Culture=en, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.IO.IsolatedStorage.resources.dll' or one of its dependencies.
Loaded assembly: /private/var/containers/Bundle/Application/183225F0-15CF-4B27-A501-AD29B594C352/Wodia2.app/System.Security.AccessControl.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.IO.FileSystem.AccessControl.dll. Type:System.Security.AccessControl.DirectorySecurity. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.AccessControl.ObjectSecurity..ctor()
at System.Security.AccessControl.CommonObjectSecurity..ctor(Boolean isContainer)
at System.Security.AccessControl.NativeObjectSecurity..ctor(Boolean isContainer, ResourceType resourceType)
at System.Security.AccessControl.FileSystemSecurity..ctor()
at System.Security.AccessControl.DirectorySecurity..ctor()
at System.Object.InvokeStub_DirectorySecurity..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.IO.FileSystem.AccessControl.dll. Type:System.Security.AccessControl.FileSecurity. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.AccessControl.ObjectSecurity..ctor()
at System.Security.AccessControl.CommonObjectSecurity..ctor(Boolean isContainer)
at System.Security.AccessControl.NativeObjectSecurity..ctor(Boolean isContainer, ResourceType resourceType)
at System.Security.AccessControl.FileSystemSecurity..ctor()
at System.Security.AccessControl.FileSecurity..ctor()
at System.Object.InvokeStub_FileSecurity..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Buffers.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Security.AccessControl.dll. Type:System.Security.Policy.Evidence. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.Policy.Evidence..ctor()
at System.Object.InvokeStub_Evidence..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Security.AccessControl.dll. Type:System.Security.AccessControl.AuthorizationRuleCollection. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.AccessControl.AuthorizationRuleCollection..ctor()
at System.Object.InvokeStub_AuthorizationRuleCollection..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Security.AccessControl.dll. Type:System.Security.AccessControl.PrivilegeNotHeldException. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.AccessControl.PrivilegeNotHeldException..ctor()
at System.Object.InvokeStub_PrivilegeNotHeldException..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.Extensions.Logging.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.Extensions.Options.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.Maui.Controls.Xaml.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.IO.FileSystem.Watcher.dll. Type:System.IO.FileSystemWatcher. Exception: 'System.IO.FileSystem.Watcher is not supported on this platform.'. Callstack: ' at System.IO.FileSystemWatcher..ctor()
at System.Object.InvokeStub_FileSystemWatcher..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.IO.FileSystem.Watcher.dll. Type:System.IO.InternalBufferOverflowException. Exception: 'System.IO.FileSystem.Watcher is not supported on this platform.'. Callstack: ' at System.IO.InternalBufferOverflowException..ctor()
at System.Object.InvokeStub_InternalBufferOverflowException..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Text.Encoding.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Security.Cryptography.Csp.dll [External]
2025-03-13 13:48:44.561 Xamarin.PreBuilt.iOS[7019:1181351] Could not resolve assembly System.Security.AccessControl.resources, Version=9.0.0.0, Culture=en, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Security.AccessControl.resources.dll' or one of its dependencies.
2025-03-13 13:48:44.624 Xamarin.PreBuilt.iOS[7019:1181351] Could not resolve assembly System.IO.FileSystem.Watcher.resources, Version=9.0.0.0, Culture=en, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.IO.FileSystem.Watcher.resources.dll' or one of its dependencies.
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Runtime.CompilerServices.Unsafe.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Net.Quic.dll. Type:System.Net.Quic.QuicClientConnectionOptions. Exception: 'System.Net.Quic is not supported on this platform: {0} For more information see: https://learn.microsoft.com/dotnet/fundamentals/networking/quic/quic-overview#platform-dependencies'. Callstack: ' at System.Net.Quic.QuicConnectionOptions..ctor()
at System.Net.Quic.QuicClientConnectionOptions..ctor()
at System.Object.InvokeStub_QuicClientConnectionOptions..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Net.Quic.dll. Type:System.Net.Quic.QuicListenerOptions. Exception: 'System.Net.Quic is not supported on this platform: {0} For more information see: https://learn.microsoft.com/dotnet/fundamentals/networking/quic/quic-overview#platform-dependencies'. Callstack: ' at System.Net.Quic.QuicListenerOptions..ctor()
at System.Object.InvokeStub_QuicListenerOptions..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Net.Quic.dll. Type:System.Net.Quic.QuicReceiveWindowSizes. Exception: 'System.Net.Quic is not supported on this platform: {0} For more information see: https://learn.microsoft.com/dotnet/fundamentals/networking/quic/quic-overview#platform-dependencies'. Callstack: ' at System.Net.Quic.QuicReceiveWindowSizes..ctor()
at System.Object.InvokeStub_QuicReceiveWindowSizes..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Net.Quic.dll. Type:System.Net.Quic.QuicServerConnectionOptions. Exception: 'System.Net.Quic is not supported on this platform: {0} For more information see: https://learn.microsoft.com/dotnet/fundamentals/networking/quic/quic-overview#platform-dependencies'. Callstack: ' at System.Net.Quic.QuicConnectionOptions..ctor()
at System.Net.Quic.QuicServerConnectionOptions..ctor()
at System.Object.InvokeStub_QuicServerConnectionOptions..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.Maui.Essentials.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.Extensions.Configuration.dll [External]
2025-03-13 13:48:44.662 Xamarin.PreBuilt.iOS[7019:1181351] Could not resolve assembly System.Net.Quic.resources, Version=9.0.0.0, Culture=en, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Net.Quic.resources.dll' or one of its dependencies.
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.Extensions.Configuration.Abstractions.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.Extensions.Primitives.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Runtime.Extensions.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Security.Principal.Windows.dll. Type:Microsoft.Win32.SafeHandles.SafeAccessTokenHandle. Exception: 'Windows Principal functionality is not supported on this platform.'. Callstack: ' at Microsoft.Win32.SafeHandles.SafeAccessTokenHandle..ctor()
at System.Object.InvokeStub_SafeAccessTokenHandle..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Security.Principal.Windows.dll. Type:System.Security.Principal.IdentityNotMappedException. Exception: 'Windows Principal functionality is not supported on this platform.'. Callstack: ' at System.Security.Principal.IdentityNotMappedException..ctor()
at System.Object.InvokeStub_IdentityNotMappedException..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Security.Principal.Windows.dll. Type:System.Security.Principal.IdentityReferenceCollection. Exception: 'Windows Principal functionality is not supported on this platform.'. Callstack: ' at System.Security.Principal.IdentityReferenceCollection..ctor()
at System.Object.InvokeStub_IdentityReferenceCollection..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Plugin.Maui.Pedometer.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Net.dll [External]
2025-03-13 13:48:44.720 Xamarin.PreBuilt.iOS[7019:1181351] Could not resolve assembly System.Security.Principal.Windows.resources, Version=9.0.0.0, Culture=en, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Security.Principal.Windows.resources.dll' or one of its dependencies.
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.IO.Pipes.AccessControl.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.IO.Pipes.AccessControl.dll. Type:System.IO.Pipes.PipeSecurity. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.AccessControl.ObjectSecurity..ctor()
at System.Security.AccessControl.CommonObjectSecurity..ctor(Boolean isContainer)
at System.Security.AccessControl.NativeObjectSecurity..ctor(Boolean isContainer, ResourceType resourceType)
at System.IO.Pipes.PipeSecurity..ctor()
at System.Object.InvokeStub_PipeSecurity..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Threading.Tasks.Extensions.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Text.Encodings.Web.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.IO.UnmanagedMemoryStream.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Web.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Xml.Linq.dll [External]
2025-03-13 13:48:44.842 Xamarin.PreBuilt.iOS[7019:1181351] Could not resolve assembly System.ComponentModel.Annotations.resources, Version=9.0.0.0, Culture=en, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.ComponentModel.Annotations.resources.dll' or one of its dependencies.
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.ComponentModel.Annotations.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Threading.Tasks.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Resources.ResourceManager.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.Win32.Registry.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.Win32.Registry.dll. Type:Microsoft.Win32.SafeHandles.SafeRegistryHandle. Exception: 'Registry is not supported on this platform.'. Callstack: ' at Microsoft.Win32.SafeHandles.SafeRegistryHandle..ctor()
at System.Object.InvokeStub_SafeRegistryHandle..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.Win32.Registry.dll. Type:System.Security.AccessControl.RegistrySecurity. Exception: 'Access Control List (ACL) APIs are part of resource management on Windows and are not supported on this platform.'. Callstack: ' at System.Security.AccessControl.ObjectSecurity..ctor()
at System.Security.AccessControl.CommonObjectSecurity..ctor(Boolean isContainer)
at System.Security.AccessControl.NativeObjectSecurity..ctor(Boolean isContainer, ResourceType resourceType)
at System.Security.AccessControl.RegistrySecurity..ctor()
at System.Object.InvokeStub_RegistrySecurity..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Transactions.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Runtime.InteropServices.RuntimeInformation.dll [External]
2025-03-13 13:48:44.867 Xamarin.PreBuilt.iOS[7019:1181351] Could not resolve assembly Microsoft.Win32.Registry.resources, Version=9.0.0.0, Culture=en, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.Win32.Registry.resources.dll' or one of its dependencies.
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/WindowsBase.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.IO.Compression.FileSystem.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.Extensions.Logging.Debug.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Data.DataSetExtensions.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Security.Cryptography.Primitives.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.IO.FileSystem.Primitives.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Globalization.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Net.ServicePoint.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Net.Http.Json.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Security.Cryptography.OpenSsl.dll [External]
2025-03-13 13:48:45.031 Xamarin.PreBuilt.iOS[7019:1181351] Could not resolve assembly System.Runtime.InteropServices.JavaScript.resources, Version=9.0.0.0, Culture=en, PublicKeyToken=null. Details: Could not load file or assembly '/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Runtime.InteropServices.JavaScript.resources.dll' or one of its dependencies.
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Runtime.InteropServices.JavaScript.dll [External]
[0:] Failed to force load assembly /var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Runtime.InteropServices.JavaScript.dll. Type:System.Runtime.InteropServices.JavaScript.JSExportAttribute. Exception: 'System.Runtime.InteropServices.JavaScript is not supported on this platform.'. Callstack: ' at System.Runtime.InteropServices.JavaScript.JSExportAttribute..ctor()
at System.Object.InvokeStub_JSExportAttribute..ctor(Object , Object , IntPtr* )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)'
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.Extensions.DependencyInjection.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Text.Encoding.CodePages.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/Microsoft.VisualBasic.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Drawing.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CEEA2727-D782-406C-8268-CEEE67E69394/Documents/Wodia2.content/System.Resources.Reader.dll [External]
2025-03-13 13:48:45.160 Xamarin.PreBuilt.iOS[7019:1181351] You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
Thread started: <Thread Pool> #12
The app has been terminated.
=================================================================
Native Crash Reporting
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
=================================================================
Native stacktrace:
=================================================================
0x1d6c7ac8c - /usr/lib/system/libsystem_kernel.dylib : <redacted>
0x1d6c7acc0 - /usr/lib/system/libsystem_kernel.dylib :
0x1aec58898 - /System/Library/PrivateFrameworks/TCC.framework/TCC : TCCAccessRequest
0x19ac2d194 - /System/Library/Frameworks/CoreMotion.framework/CoreMotion : CLGetEEDEmergencyContactNames
0x195a3c13c - /usr/lib/system/libdispatch.dylib : <redacted>
0x195a3ddd4 - /usr/lib/system/libdispatch.dylib : <redacted>
0x195a45400 - /usr/lib/system/libdispatch.dylib : <redacted>
0x195a45f30 - /usr/lib/system/libdispatch.dylib : <redacted>
0x195a50cb4 - /usr/lib/system/libdispatch.dylib : <redacted>
0x195a50528 - /usr/lib/system/libdispatch.dylib : <redacted>
0x1ea9ef934 - /usr/lib/system/libsystem_pthread.dylib : _pthread_wqthread
0x1ea9ec0cc - /usr/lib/system/libsystem_pthread.dylib : start_wqthread
=================================================================
Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x1d6c5b344):0x1d6c5b334 ff 0f 5f d6 c0 03 5f d6 .T.#...{......
0x1d6c5b354 64 cc ff 97 bf 03 00 91 fd 7b c1 a8 ff 0f 5f d6 d........{...._.
0x1d6c5b364 c0 03 5f d6 90 32 80 d2 01 10 00 d4 03 01 00 54 .._..2.........T
0x1aec5b324 - /System/Library/PrivateFrameworks/TCC.framework/TCC : <redacted>
0x1aec55ba0 - /System/Library/PrivateFrameworks/TCC.framework/TCC : <redacted>
0x1aec55570 - /System/Library/PrivateFrameworks/TCC.framework/TCC : <redacted>
0x1aec54700 - /System/Library/PrivateFrameworks/TCC.framework/TCC : <redacted>
0x195a3ddd4 - /usr/lib/system/libdispatch.dylib : <redacted>
0x195a4d2c4 - /usr/lib/system/libdispatch.dylib : <redacted>
0x1a7bab94c - /usr/lib/system/libsystem_trace.dylib : <redacted>
0x104503790 - /private/var/containers/Bundle/Application/183225F0-15CF-4B27-A501-AD29B594C352/Wodia2.app/Xamarin.PreBuilt.iOS : sigabrt_signal_handler.cold.1
0x1044b87bc - /private/var/containers/Bundle/Application/183225F0-15CF-4B27-A501-AD29B594C352/Wodia2.app/Xamarin.PreBuilt.iOS : mono_dump_native_crash_info
0x1044b80d0 - /private/var/containers/Bundle/Application/183225F0-15CF-4B27-A501-AD29B594C352/Wodia2.app/Xamarin.PreBuilt.iOS : mono_runtime_setup_stat_profiler
0x1044a2d98 - /private/var/containers/Bundle/Application/183225F0-15CF-4B27-A501-AD29B594C352/Wodia2.app/Xamarin.PreBuilt.iOS : mono_handle_native_crash
0x1ea936e9c - /usr/lib/system/libsystem_platform.dylib : <redacted>
30 41 80 d2 01 10 00 d4 .._..._.0A......
0x1d6c5b344 03 01 00 54 7f 23 03 d5 fd 7b bf a9 fd 03 00 91 ..The app has been terminated.
You've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist
trory添加到您的信息中。
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
</array>