Comments (8)
@samhouts yes, adding
<MtouchInterpreter>all</MtouchInterpreter>
solved the problem for now. thank you.
from maui.
@Axemasta try adding <UseInterpreter>True</UseInterpreter
> as well.
from maui.
@Axemasta try adding
<UseInterpreter>True</UseInterpreter
> as well.
That did the trick! added bonus my dotnet publish
times on the build agent went from an average of 30 minutes / 100MB ipa to 3 minutes / 50MB ipa!
from maui.
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Open similar issues:
- iOS Application crashes on startup when built through Azure pipeline (#18652), similarity score: 0.79
Closed similar issues:
- Can't use Entity Framework Core in iOS Release builds (#12537), similarity score: 0.79
- MAUI ios app not working/crashing after deployed to Testflight (#19026), similarity score: 0.78
- .NET Maui release build crashes but debug build is fine (#18870), similarity score: 0.77
- Release version of .NET MAUI 70 crashes on startup (#19977), similarity score: 0.77
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from maui.
Have you tried the workaround mentioned in #23577 (comment)? If it works for you, we can perhaps close this as a duplicate. Thanks!
from maui.
Duplicate of #23577
from maui.
I am still seeing this issue with EFCore 8 and the following in my maui csproj:
<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) and '$(Configuration)' == 'Release'">
<ArchiveOnBuild>true</ArchiveOnBuild>
<MtouchInterpreter>all</MtouchInterpreter>
<PublishAot>false</PublishAot>
</PropertyGroup>
When building for release (only) i get the following exception at runtime:
2024-07-18 17:13:54.718136+0100 MyApp[13004:8774208] [2024-07-18 17:13:54.690 +01:00] [ERR] [DatabaseInitializer] An exception occurred initializing the database
System.InvalidOperationException: Model building is not supported when publishing with NativeAOT. Use a compiled model.
from maui.
Great to hear!
from maui.
Related Issues (20)
- Pasting long text into the Editor not possible on iOS HOT 2
- Some HEIC photos is upside down after using PlatformImage.Resize HOT 2
- Accessing Deployment Files HOT 1
- Unstable order of FlyoutItems with conditional visibility HOT 1
- .NET 8 MAUI Android - Storage.Preferences returns default value when executed whilst the application isn't open/running HOT 1
- Memory Leaking and buggy Editor HOT 1
- App name with underscore won't deploy; misleading error message "project needs to be deployed ..." HOT 2
- MSB4044 The "GenerateRtxt" task was not given a value for the required parameter "JavaPlatformJarPath" HOT 1
- Label-> FormattedString-> Span: Critical Performance Issue HOT 14
- DatePicker Text hide while hovering in Windows HOT 3
- Facing issues with the SearchBar's search icon when applying Dark theme. HOT 3
- Button's VisualState is not returning from Pressed to Normal HOT 1
- ImageButton CornerRadius not being applied on Android HOT 3
- Unable to start debug session on the Android emulator when airplane mode is enabled. HOT 3
- Creating an unpackaged Windows Maui app STILL does not work. HOT 3
- Can't install MAUI on Windows 11 HOT 3
- ObservableCollection<T>.Clear() throws System.ArgumentOutOfRangeException HOT 4
- Cross-OS native compilation is not supported. HOT 2
- cant build app HOT 4
- MAUI Splash screen does not take full screen size Xiaomi device HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maui.