-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App crash at startup after migrating from .Net7 to .Net8 and from VS For Mac to VS Code #20421
Comments
From the crash report:
This is due to dotnet/runtime#98941 - basically Xcode 15.3 broke us in the simulator. The easiest workaround is to either use Xcode 15.2, or the an iOS 17.2 simulator (as opposed to iOS 17.4 simulator). Can you try that and see if it works for you then? See also #20257. |
Thanks a lot @rolfbjarne ! I've had another crash because of the following error : By setting |
Great! I'll close this as a duplicate of dotnet/runtime#98941 then.
You're using some feature the AOT compiler doesn't support (System.Reflection.Emit probably). You'll either have to enable the interpreter, or find an alternative way of doing what you're doing that doesn't require dynamic code generation. |
Steps to Reproduce
I'm building a MAUI application for ios simulator on mac m2 with a project dependancy to a binding project (native binded library).
All builds fine with .Net 7 : the binded library is OK and the app runs fine on simulator as well as on physical device.
Change the TargetFrameworks from net7.0xxx to net8.0xxx (and all followed https://github.com/dotnet/maui/wiki/Upgrading-.NET-MAUI-from-.NET-7-to-.NET-8)
Build the native binding library > it fails. Looks like I was not alone in that case and I followed the workaround and it builds fine : .NET MAUI project doesnt build on VS Code but does on VS4Mac #19596 (comment)
Regarding this changes the binded native library was indeed providing iossimulator-x64 only :
In .Net7, I didn't have all those duplicated class messages, only six on them concerning "UnbluProxy".
Targeting Android simulator, the app builds and run fine with .Net7 as well as .Net8.
Expected Behavior
The app should build and run on iOS simulator
Actual Behavior
The app crashes at startup and the debuger is still alive. We see a white screen for 1 second, illustrating the app starting and displaying the splashscreen, but it closes.
Environment
Version information
Build Logs
msbuild.binlog.zip
Crash Logs from macos "send report"
crash log.txt.zip
Example Project (If Possible)
The text was updated successfully, but these errors were encountered: