After upgrading to VS2022 preview 3 and Maui Preview 12 I'm no longer able to debug iOS apps. Break point so get hit but no code is visible.
Appliation in break mode
I have tried this on a new windows 11 install and clean install of visual studio, also tried using two phones and repeated test on another pc.
Anyone having the same issue or any suggestions.
You could use the latest Visual Studio. Upgrade the Visual Studio preview 3 to preview 4 maybe fix this issue. I tested on preview 4 on Win11. It could debug the app and run it well.
My tested Visual Studio version:
Microsoft Visual Studio Community 2022 (64-bit) - Preview
Version 17.1.0 Preview 4.0
Related
I have the problem that I'm not able to see the list of iOS simulators in Visual Studio Debug Target on my Windows PC
I've just made a total upgrade of my Xamarin development environment including now latest VS 2022, latest OS on my Mac, latest XCode version 14 and latest version of Xamarin on my PC and Mac. I have successfully paired to my Mac from Visual Studio.
On my Mac I've just tried to refresh the list of Debug devices as described in Microsoft Docs:
Delete your ~/Library/Developer/CoreSimulator/Devices folder.
Run killall -9 com.apple.CoreSimulator.CoreSimulatorService.
Run xcrun simctl list devices.
.. but still no result. All I can select in my Debug Target is Local Device, Remote Device and Simulator.
Before this upgrade I had no problem seeing all the simulators.
I will really appreciate if anybody have some good ideas of what I can do to solve this.
Following is my list of installed components from VS About box:
Xamarin 17.3.0.296 (d17-3#a0ff24b)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 17.3.0.208 (remotes/origin/d17-3#e4f67afef)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin Templates 17.2.28 (9b3d244)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.iOS and Xamarin.Mac SDK 15.12.0.2 (87f98a75e)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support
Please be noted that XCode 14 is not yet supported in Xamarin.iOS or .NET MAUI, you need downgrade your Xcode version to 13.4.1 and could download it from the downloads page in the Apple Developer Portal. For more information, you can refer to https://github.com/xamarin/xamarin-macios/issues/15954
Update:
Xcode 14 is currently supported and if there are any other issues, please continue to post back to the GitHub.Thanks!
I have this same issue even after installing VS 17.3.6. I have no list of iOS simulators and I get a warning that this version of Xcode is not supported.
I am having trouble with the iOS simulator and I was wondering if anyone else had the same problem or had any suggestions. I am very new to Xamarin; I just completed the Hello, World tutorial for iOS. I was able to build all with no errors. When I attempt to launch the app in the simulator, it displays a black screen.
I'm using an iMac running Parallels with Windows 10 and Visual Studio Enterprise 2017. I created a new Mobile App (Xamarin.Forms) project under Cross-Platform. Using the latest XCODE (v 12.0) in iMac to get the simulators.
Main Interface in Info.plist is set to "(not set)". I tried changing it to LaunchScreen but still get the black screen.
I created a hello world project in xcode and it works fine. Black screen issue is on Windows side. Let me know what I'm doing wrong. Thanks.
If you need to run iOS 14, you will need a Visual Studio 2019 in PC.
Run Xcode 12 – Run Xcode 12 before updating and running Visual Studio for Mac or Visual Studio 2019, as it installs some tools that Xamarin requires.
And the Visual Stuido 2017 supports the last version is iOS 12.
Run Xcode 10 – Run Xcode 10 before updating and running Visual Studio for Mac or Visual Studio 2017, as it installs some tools that Xamarin requires.
I am trying to learn more about Xamarin in my free time. So far I have created a simple Xamarin Forms app with a UWP target and an Android target. I want to add an IOS target now.
Therefore I have purchased a MacBook Pro with Mojave 10.14.6. I have installed Xcode 11 (11A420a) and Visual Studio 2019 version 8.3.1 (I believe) on the Mac. I have opened Visual Studio 2019 on my Windows PC (version 16.0.3) and successfully paired the Mac.
I then created a Hello World Xamarin Forms app that is targeted by IOS on the Windows PC. The app runs, however I just see a black screen in the simulator. I have spent all day Googling this and have got no-where. Is version 11 of Xcode supported by Visual Studio 2019 and Xamarin on a Windows PC? What can I do?
Is version 11 of XCode supported by Visual Studio 2019 and Xamarin on
a Windows PC?
Yes, it is suppported.
I cannot see a project options in the build menu.
Right click the iOS project--> option --> iOS build --> link behavior, I will show you the screenshot.
And
Update:
To the original question, update the Visual-Studio to the latest version(16.3.2) will solve it.
If you have iOS 13 SDK on the Mac you'll need Visual Studio 16.3.2 or greater on your Windows machine.
I'm trying to run an already functional application that requires the Windows 8.1 SDK.
I installed Visual Studio 2019, but there is no option in the 8.1 SDK.
This is for a Windows 10 using Visual Studio 2019 last update.
On my old computer, there was the option to select in "Individual Components", but now no longer the encounter. Does anyone know if there is no such support on VS2019? Or is it necessary to install something more for the support to appear?
This is expected as it is marked as deprecated in Visual Studio 2019:
The Windows 8.1 SDK is no longer available in the Visual Studio
installer. Please upgrade your C++ projects to the latest Windows 10
SDK. If you have a hard dependency on 8.1, you can download it from
the Windows SDK archive.
So download and install the SDK from here.
I have Visual studio 2017 on windows and have a mini mac.
I installed xamarin, xamarin.ios, xamarin.android to windows.
Then can debug android application with emulator on visual studio success fully.
I installed xamarin studio community and update recent version xamarin, xamarin.ios, xamarin.android.
Then i could connect to mac from visual studio by xamarin agent.
I thought that finally readied to debug IOS app by simulator.
But don't appearance IOS simulators list.
So, I want to be sure that, Is it possible that debug with simulator on visual studio(windows) without "Remoted iOS Simulator"? I know that is require VS enterprise but i don't have.
Waiting your comment, Thank you.