Reputation: 332
I updated my XCode to XCode 13 for make test my Xamarin.iOS app on ios 15 devices. I updated visual studio for mac app to version 8.10.9 After this updating, I opened my app in visual studio for mac but when I try to choose devices, I can't see devices. There is only a message that: "Lower the 'Deployment Target' to see older simulators or check your Apple SDK path"
I tried to change deployment target and I checked Apple SDK path from Preferences/SDK Locations/Apple/Apple SDK. I tried to set path both "/Applications/Xcode.app" and "/Applications/Xcode.app/". But none of them didn't worked for me. What sould I do?
Thanks in advance.
Upvotes: 7
Views: 11386
Reputation: 655
Works well on Visual Studio for Mac 17.5.4 (build 8) and macOS Ventura 13.3.1(a)
Follow all these simple and straightforward steps.
Download Xcode 13 release, 13.4.1 from here.
Extract the contents of the .xip file. It will be named Xcode.app. Since you already have an Xcode.app in the Applications folder, you’ll need to rename it. Preference is to name it with version. In this case, Xcode13_4_1.app
. Then drag it to the Applications folder.
And then make it the default Xcode. From a shell, run the following
sudo xcode-select -s /Applications/Xcode13_4_1.app
To verify that this is now the current version of Xcode, run the following
sudo xcode-select -p
That should come back with something like
/Applications/Xcode13_4_1.app/Contents/Developer
After doing that, I restarted Visual Studio and enjoy the simulators back
To switch back to latest version, just run xcode-select
again
sudo xcode-select -s /Applications/Xcode
Upvotes: 2
Reputation: 17971
I experienced the same error in Oct 2022 with XCode 13.3.1 installed on an M1 Air with Monterey macOS 12.3.1.
Visual Studio Community 2022 for Mac, Version 17.3.5 (build 0)
This is a project several years old that I've not worked on for over a year. The deployment target in the info.plist is 9.3.
I have no problems building a new Xamarin Forms project and running on the simulator.
The SDK Locations panel says:
XCode 13.3.1 found at the system location (xcode-select)
/Applications/Xcode.app
After satisfying myself that a basic new project worked, I applied the simple classic technique of deleting the obj
and bin
folders for the core and iOS projects. That fixed it and I was able to build and run on the simulator.
Upvotes: 1
Reputation: 51
Just experienced the same issue after auto update to Xcode 14. Downgrading to Xcode 13.4.1 fixed the issue.
More information about Xamarin.iOS support with Xcode 14 here
Upvotes: 4
Reputation: 34103
There isn't a Xcode 13 compatible version of Visual Studio for Mac/Xamarin.iOS released yet. It should be here soon, but if you need it to work now, go over to the Apple Developer portal and download the latest Xcode 12 version and (re)install that.
More information can be found here.
Upvotes: 4