-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Unable to launch app on iOS from both VS and VS MAC #16421
Comments
Any news on this? Started happening yesterday. |
Still stuck. Reinstalling VS doesn't help. Looks like I'd have to create an empty app, start copying modules here and try to find when it breaks. Super boring and time consuming process |
Still broken on latest preview. |
Yes, our project is still on hold, too. |
Have you found any workaround? It just randomly stopped working for me too |
Current workaround is to launch the app from Windows machine connected to the Mac. "XAML hot reload" should be disabled or app crashes with 95% probability after 5-10 seconds after launch. Can launch on iPhone but without any debugging (debugger crashes) |
Not sure if anyone is still having problems with this, but it went away for a bit and then started happening again a few days ago. Think I finally tracked down the issue. For me it was the .user file for the main mobile project. The simulator project updated the PlatformTarget to not match the RuntimeIdentifier. Deleting this file solved my problem. |
Because VS for Mac is officially unsupported now, I just uninstalled it. I've tried to use VS code extension, but now I'm able to launch the app only on the actual phone. If I set target to any simulator, it fails with thousands of errors about incorrect assembly instruction. I'm aware now of this .user file which is messing things up, but even editing it won't help to get the app launched via VS code in simulator. |
That's so weird, my experience with VS code om mac has been really good. It works much better then VS for Mac. I've only had this one issue that I finally managed to resolve by just deleting the file and letting it recreate it. On windows it's a bit of a different story, there I got a lot of random errors, so I normally just swap to VS. If you do figure out what the problem is please post it, always good to know how to work around these errors especially with the retirement of VS for Mac. |
@andrew-barlit this incorrect assembly instructions error usually comes from using native libraries which is missing simulator arch support |
@andrew-barlit have you tried adding to your simulator build config? |
@stefandb1995 With .net 8 preview it wasn't working, but today I've tried again by installing .net 8. Now app launches on simulator just fine from VS code. Looks like the issue was eventually fixed Now I'm finally trying to publish app to the app store from VS in windows, and guess what... Process hangs after ~10 minutes, just nothing happens. No CPU activity, no disk activity. I cannot see any logs in "output" window, maybe they're somewhere else. Will try from Mac, at least it started working better Have to say that Android part of MAUI works very nice, cannot remember a single blocking bug. But for iOS is just like a bad quest room |
That's so true 😔 When I first time launched my app (I tested everything during development on Android) on iOS, all the layouts was broken, I first thought there's something with my emulator cuz it can't be THAT broken. I spent days just making layouts work the same. Making app work for iOS probably took more time for me then even developing it |
Update about publishing to the App Store - still won't able to do it from VS in windows. Just never finishes, cancel button isn't working, had to kill VS process in order to do something. |
Thanks for the issue report @andrew-barlit! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS. If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.
|
Description
I'm rewriting a legacy Xamarin app to MAUI platform (targeting Android and iOS). I've been working with Android emulator from the start of the migration process and everything went fine. But when I've tried to launch the app on iOS, I faced multiple issues which I can't resolve.
If I try to launch the app from VS MAC 17.6.1 (452) (running on Ventura 13.5), it builds the app but simulator returns the following error in "Application output" which sounds like a joke: This app needs to be updated by the developer to work on this version of iOS
Digging through the CoreSimulator logs reveals some more info:
If I try to launch the same app from VS 17.6.5 (running on Windows machine) via remote connection to the same Mac, app launches but crashes after ~5 seconds without any interaction with the app. No errors, remote connection to Mac just dies and that's it. In the Xamarin.Messaging-17.6.0.251 folder appears this text (timecode points to app crash event):
If I try to launch on a physical iPhone 6s, app won't even get installed and VS MAC then returns error "application not found"
We don't use much 3rd party packages in our project, here's the complete list:
Could someone please advise how I can proceed? I'm completely stuck at this point
Can't choose correct workload ID in this form, 'dotnet workload list' returns 7.0.92/7.0.100.
Steps to Reproduce
Unfortunately, can't provide at this point. App has pretty many views and services. I can launch blank app without any problems on the same environment, and app runs fine on Android emulator.
Link to public reproduction project repository
https://github.com/dotnet/maui
Version with bug
Unknown/Other
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 16.4, iOS 14.2
Did you find any workaround?
No workaround
Relevant log output
No response
The text was updated successfully, but these errors were encountered: