.NET 8, Cannot deploy on IOS Simulator - nothing happens #19215
-
After upgrading to .net 8 (8.0.4) and Visual Studio 2022 17.8.2, app is building and saying that it is deployed, but nothing happens on connected Mac side, simulator not launching or receive app. VS output window: |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 8 replies
-
Same thing is broken here since .NET8 upgrade for our project. You really need to compile/deploy from VS Mac. If you don't need to debug App from Windows while running and you want it to run in the remote simulator (so you can see it on Windows PC) - create a new MAUI App - do remote launch so iOS Remoted simulator comes up on Windows (for some reason this works). Then on the Mac run/deploy it to same simulator & you will be able to control it and use it from Windows - you can even debug it from VS Mac if you want but that's a pretty crappy IDE. |
Beta Was this translation helpful? Give feedback.
-
Found out that in old projects (before .NET 8) there is global.json file with mentioned framework version. Change version or, better, delete it completely and it will begin deploying fine. |
Beta Was this translation helpful? Give feedback.
-
I have similar issue with 17.8.5 and there is not Global.json file. Is there any other possible solution to this ? |
Beta Was this translation helpful? Give feedback.
-
I'd been running against the iOS simulator for months with no problem, I then did a Release Build for testing, which meant that I had an "iPhone Distribution" provisioning profile selected under the "Signing Identity" option (under Properties -> iOS -> Bundle Signing). I then tried to run against the Simulator in Debug and VS2022 (Version 17.9.6) 'said' that the deployment to the simulator had been successful, which it hadn't .. nothing fired up. As a test I deleted the obj/bin, tried again, same thing. Switched the "Signing Identity" back to "Developer (Automatic) and provisioning profile to Automatic and the Simulator fired up again. I hope this helps. |
Beta Was this translation helpful? Give feedback.
-
I'm having exactly the same problem, I don't get any errors when compiling but the simulator doesn't launch. |
Beta Was this translation helpful? Give feedback.
-
Same symptoms. Compiles OK, no errors. But never starts the iOS simulator. Removing the Automatic Provisioning and deleting the Bin and Obj folders did not work. The problem in my case was the wrong certificate in the Keychain on the MAC. I removed the wrong one and installed the correct one. Then it all worked OK. |
Beta Was this translation helpful? Give feedback.
-
N.B. Visual Studio for Mac has been retired as of August 31, 2024 The approach that we follow for iOS development, particularly for new developers being setup on new macs is:
|
Beta Was this translation helpful? Give feedback.
Found out that in old projects (before .NET 8) there is global.json file with mentioned framework version. Change version or, better, delete it completely and it will begin deploying fine.