xamarin 降低“部署目标”以查看较旧的模拟器或检查更新后的Apple SDK路径警告

xwbd5t1u  于 2022-12-07  发布在  其他
关注(0)|答案(3)|浏览(124)

我将我的XCode更新为XCode 13,以便在iOS 15设备上测试我的Xamarin. iOS应用程序。我将Visual Studio for mac应用程序更新为版本8.10.9。在此更新后,我在Visual Studio for mac中打开了我的应用程序,但当我尝试选择设备时,我看不到设备。只有一条消息:"降低"部署目标"以查看较旧的模拟器或检查Apple SDK路径"
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?
先谢谢你。

xriantvc

xriantvc1#

在自动更新到Xcode 14后刚刚遇到了同样的问题。降级到Xcode 13.4.1修复了该问题。
有关Xamarin的更多信息。iOS支持Xcode 14 here

iszxjhcz

iszxjhcz2#

目前还没有一个与Xcode 13兼容的Visual Studio for Mac/Xamarin.iOS版本发布。它应该很快就会发布,但是如果你现在需要它,请到苹果开发者门户网站下载最新的Xcode 12版本并(重新)安装它。
有关更多信息,请访问here

1u4esq0p

1u4esq0p3#

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.

相关问题