Я создаю приложение .NET MAUI Blazor, которое использует статические файлы (CSS, изображения и index.html) в папке wwwroot.
Приложение отлично работает на Android и , но на iOS происходит сбой при запуске с этим исключением:
System.ExecutionEngineException
Attempting to JIT compile method '(wrapper dynamic-method) object object:InvokeStub_SafeFileHandle..ctor (object,object,intptr*)' while running in aot-only mode. See https://learn.microsoft.com/xamarin/ios ... imitations for more information.
(System.ExecutionEngineException)
at System.Delegate.CreateDelegate(Type , Object , MethodInfo , Boolean , Boolean )
at System.Reflection.Emit.DynamicMethod.CreateDelegate(Type , Object )
at System.Reflection.InvokerEmitUtil.CreateInvokeDelegate_RefArgs(MethodBase , Boolean )
at System.Reflection.MethodInvokerCommon.DetermineStrategy_RefArgs(InvokerStrategy& , InvokeFunc_RefArgs& , MethodBase , Boolean )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object , BindingFlags )
at System.RuntimeType.CreateInstanceMono(Boolean , Boolean )
at System.Activator.CreateInstance[SafeFileHandle]()
at System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller`1.ManagedToUnmanagedOut[[Microsoft.Win32.SafeHandles.SafeFileHandle, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]..ctor()
at Interop.Sys.Open(String , OpenFlags , Int32 )
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String , OpenFlags , Int32 , Boolean , Boolean& , Func`4 )
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String , FileMode , FileAccess , FileShare , FileOptions , Int64 , UnixFileMode , Int64& , UnixFileMode& , Boolean , Boolean& , Func`4 )
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String , FileMode , FileAccess , FileShare , FileOptions , Int64 , Nullable`1 , Func`4 )
at System.IO.Strategies.OSFileStreamStrategy..ctor(String , FileMode , FileAccess , FileShare , FileOptions , Int64 , Nullable`1 )
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String , FileMode , FileAccess , FileShare , FileOptions , Int64 , Nullable`1 )
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream , String , FileMode , FileAccess , FileShare , Int32 , FileOptions , Int64 , Nullable`1 )
at System.IO.FileStream..ctor(String , FileMode , FileAccess , FileShare , Int32 , FileOptions , Int64 )
at System.IO.File.OpenRead(String )
at Microsoft.AspNetCore.Components.WebView.Maui.iOSMauiAssetFileProvider.iOSMauiAssetFileInfo.CreateReadStream()
at Microsoft.AspNetCore.Components.WebView.StaticContentProvider.TryGetFromFileProvider(String , Stream& , String& )
at Microsoft.AspNetCore.Components.WebView.StaticContentProvider.TryGetResponseContent(String , Boolean , Int32& , String& , Stream& , IDictionary`2& )
at Microsoft.AspNetCore.Components.WebView.WebViewManager.TryGetResponseContent(String , Boolean , Int32& , String& , Stream& , IDictionary`2& )
at Microsoft.AspNetCore.Components.WebView.Maui.BlazorWebViewHandler.SchemeHandler.GetResponseBytes(String url, String& contentType, Int32& statusCode)
at Microsoft.AspNetCore.Components.WebView.Maui.BlazorWebViewHandler.SchemeHandler.StartUrlSchemeTask(WKWebView webView, IWKUrlSchemeTask urlSchemeTask)
at Microsoft.AspNetCore.Components.WebView.Maui.BlazorWebViewHandler.SchemeHandler.__Registrar_Callbacks__.callback_572_Microsoft_AspNetCore_Components_WebView_Maui_BlazorWebViewHandler_SchemeHandler_StartUrlSchemeTask(IntPtr pobj, IntPtr sel, IntPtr p0, IntPtr p1, IntPtr* exception_gchandle)
Подробнее здесь: https://stackoverflow.com/questions/798 ... ion-on-ios
Почему мое приложение .NET MAUI iOS аварийно завершает работу с System.ExecutionEngineException на IOS и ошибкой компиля ⇐ IOS
Программируем под IOS
1761829193
Anonymous
Я создаю приложение .NET MAUI Blazor, которое использует статические файлы (CSS, изображения и index.html) в папке wwwroot.
Приложение отлично работает на Android и , но на iOS происходит сбой при запуске с этим исключением:
System.ExecutionEngineException
Attempting to JIT compile method '(wrapper dynamic-method) object object:InvokeStub_SafeFileHandle..ctor (object,object,intptr*)' while running in aot-only mode. See https://learn.microsoft.com/xamarin/ios/internals/limitations for more information.
(System.ExecutionEngineException)
at System.Delegate.CreateDelegate(Type , Object , MethodInfo , Boolean , Boolean )
at System.Reflection.Emit.DynamicMethod.CreateDelegate(Type , Object )
at System.Reflection.InvokerEmitUtil.CreateInvokeDelegate_RefArgs(MethodBase , Boolean )
at System.Reflection.MethodInvokerCommon.DetermineStrategy_RefArgs(InvokerStrategy& , InvokeFunc_RefArgs& , MethodBase , Boolean )
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object , BindingFlags )
at System.RuntimeType.CreateInstanceMono(Boolean , Boolean )
at System.Activator.CreateInstance[SafeFileHandle]()
at System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller`1.ManagedToUnmanagedOut[[Microsoft.Win32.SafeHandles.SafeFileHandle, System.Private.CoreLib, Version=9.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]..ctor()
at Interop.Sys.Open(String , OpenFlags , Int32 )
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String , OpenFlags , Int32 , Boolean , Boolean& , Func`4 )
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String , FileMode , FileAccess , FileShare , FileOptions , Int64 , UnixFileMode , Int64& , UnixFileMode& , Boolean , Boolean& , Func`4 )
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String , FileMode , FileAccess , FileShare , FileOptions , Int64 , Nullable`1 , Func`4 )
at System.IO.Strategies.OSFileStreamStrategy..ctor(String , FileMode , FileAccess , FileShare , FileOptions , Int64 , Nullable`1 )
at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String , FileMode , FileAccess , FileShare , FileOptions , Int64 , Nullable`1 )
at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream , String , FileMode , FileAccess , FileShare , Int32 , FileOptions , Int64 , Nullable`1 )
at System.IO.FileStream..ctor(String , FileMode , FileAccess , FileShare , Int32 , FileOptions , Int64 )
at System.IO.File.OpenRead(String )
at Microsoft.AspNetCore.Components.WebView.Maui.iOSMauiAssetFileProvider.iOSMauiAssetFileInfo.CreateReadStream()
at Microsoft.AspNetCore.Components.WebView.StaticContentProvider.TryGetFromFileProvider(String , Stream& , String& )
at Microsoft.AspNetCore.Components.WebView.StaticContentProvider.TryGetResponseContent(String , Boolean , Int32& , String& , Stream& , IDictionary`2& )
at Microsoft.AspNetCore.Components.WebView.WebViewManager.TryGetResponseContent(String , Boolean , Int32& , String& , Stream& , IDictionary`2& )
at Microsoft.AspNetCore.Components.WebView.Maui.BlazorWebViewHandler.SchemeHandler.GetResponseBytes(String url, String& contentType, Int32& statusCode)
at Microsoft.AspNetCore.Components.WebView.Maui.BlazorWebViewHandler.SchemeHandler.StartUrlSchemeTask(WKWebView webView, IWKUrlSchemeTask urlSchemeTask)
at Microsoft.AspNetCore.Components.WebView.Maui.BlazorWebViewHandler.SchemeHandler.__Registrar_Callbacks__.callback_572_Microsoft_AspNetCore_Components_WebView_Maui_BlazorWebViewHandler_SchemeHandler_StartUrlSchemeTask(IntPtr pobj, IntPtr sel, IntPtr p0, IntPtr p1, IntPtr* exception_gchandle)
Подробнее здесь: [url]https://stackoverflow.com/questions/79803374/why-does-my-net-maui-ios-app-crash-with-system-executionengineexception-on-ios[/url]
Ответить
1 сообщение
• Страница 1 из 1
Перейти
- Кемерово-IT
- ↳ Javascript
- ↳ C#
- ↳ JAVA
- ↳ Elasticsearch aggregation
- ↳ Python
- ↳ Php
- ↳ Android
- ↳ Html
- ↳ Jquery
- ↳ C++
- ↳ IOS
- ↳ CSS
- ↳ Excel
- ↳ Linux
- ↳ Apache
- ↳ MySql
- Детский мир
- Для души
- ↳ Музыкальные инструменты даром
- ↳ Печатная продукция даром
- Внешняя красота и здоровье
- ↳ Одежда и обувь для взрослых даром
- ↳ Товары для здоровья
- ↳ Физкультура и спорт
- Техника - даром!
- ↳ Автомобилистам
- ↳ Компьютерная техника
- ↳ Плиты: газовые и электрические
- ↳ Холодильники
- ↳ Стиральные машины
- ↳ Телевизоры
- ↳ Телефоны, смартфоны, плашеты
- ↳ Швейные машинки
- ↳ Прочая электроника и техника
- ↳ Фототехника
- Ремонт и интерьер
- ↳ Стройматериалы, инструмент
- ↳ Мебель и предметы интерьера даром
- ↳ Cантехника
- Другие темы
- ↳ Разное даром
- ↳ Давай меняться!
- ↳ Отдам\возьму за копеечку
- ↳ Работа и подработка в Кемерове
- ↳ Давай с тобой поговорим...
Мобильная версия