Xamarin.iOS 在 Visual Studio for Mac 上无法运行。

huangapple go评论65阅读模式
英文:

Xamarin.ios not running in visual studio on mac

问题

error MT0026: 无法解析命令行参数 '-sdk':版本字符串部分太短或太长。
参数名称:input

我已安装最新的Xcode,并且看到此错误。

英文:

When trying to run the ios version of the app on the built in Generic simulator i get the following error and program stops

error MT0026: Could not parse the command line argument '-sdk': Version string portion 
was too short or too long.
Parameter name: input

I have xcode latest installed and i see this error

答案1

得分: 1

请注意,尚未发布支持XCode 14.3的版本,建议您使用Xcode 14.2。如果您已经更新到最新的Xcode 14.3,并希望返回到以前的版本Xcode 14.2,您可以从下载页面在苹果开发者门户网站上下载Xcode 14.2

成功安装Xcode 14.2后,您可以打开Xcode,然后转到Xcode -> Preferences -> Location -> Command Line Tools,选择XCode 14.2。然后重新启动Visual Studio for Mac,以查看它是否正常工作。

有关更多详细信息,您可以参考Xcode 14.3 Support for Xamarin, .NET 6/7 and MAUI #17561

英文:

Please be informed that XCode 14.3 support hasn't been released yet and it is suggested that you use Xcode 14.2. If you have updated to the latest Xcode 14.3 and want to go back to the previous version: Xcode 14.2,you can download Xcode 14.2 from the downloads page in the Apple Developer Portal.

After successfully installing Xcode 14.2. You may open Xcode and go to Xcode->Preferences->Location->Command Line Tools to XCode 14.2. And then restart the Visual Studio for mac to see it works.

For more details, you can refer to Xcode 14.3 Support for Xamarin, .NET 6/7 and MAUI #17561.

huangapple
  • 本文由 发表于 2023年5月6日 18:41:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76188434.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定