Closed jingliancui closed 1 year ago
I think it's because of a path issue. I had something similar. Try to run:
sudo xcode-select -s /Applications/Xcode.app
Or otherwise:
xcode-select -p
Though it would be nice if the MAUI build tools could give a clearer error message or detect the correct path.
Sorry, it doesn't work. @coen22
Maybe try opening Xcode. It probably has to update some files, after having updated through the App Store.
@coen22 Sorry, it still doesn't work.
That's odd, if I'm correct it should point to
/Applications/Xcode.app/Contents/SharedFrameworks/ContentDelivery.framework/Versions/A/ContentDelivery
Perhaps you should try to get a list of simulators and run in through the CLI:
dotnet build -t:Run -f net7.0-ios -p:_DeviceName=:v2:udid=<Simulator_UUID>
You can get <Simulator_UUID>
with the following code
/Applications/Xcode.app/Contents/Developer/usr/bin/simctl list
Thanks for the issue report @jingliancui! 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.
This issue will be automatically closed in 3 days if there are no further comments.
CC @dalexsoto
I believe your issue is you're running Xcode 14.1, but the version of Xamarin.iOS / dotnet ios SDK you have is intended for Xcode 14, hence why it's not working. I'm not sure what versions of Xcode are supported for what dotnet bands (like, is there Xcode 14.1 support for net6?) but I think that's why it's throwing, based on that stack.
@drasticactions Sorry, I've download xcode 14.0.1 and it's still doesn't work. I'm going to download xcode14 .
It doesn't work as well, I will submit an issue to vs feedback.
It doesn't work as well, I will submit an issue to vs feedback.
Same here - let's see if that will be solved somehow
This issue is being closed due to inactivity. If this issue is still affecting you, please follow the steps above to use the VS Feedback Tool to report the issue.
I still have problem with that.
Same here
issue was closed at vs feedback, would you like to open this github issue? thanks https://developercommunity.visualstudio.com/t/Could-not-deploy-iOS-app-from-VS-for-Mac/10219036?q=Could+not+deploy+iOS+app+from+VS @PureWeen
Description
Even I uninstall vs for mac follow this link https://learn.microsoft.com/en-us/visualstudio/mac/uninstall?view=vsmac-2022, and reinstall it, it still shows this error.
vs info:
Steps to Reproduce
not need
Link to public reproduction project repository
not need
Version with bug
6.0.400
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 16
Did you find any workaround?
no
Relevant log output