Bob's Blog

Web开发、测试框架、自动化平台、APP开发、机器学习等

返回上页首页

Visual Studio用MAUI项目构建ios报xcode版本错的问题解决



最近看了下微软的MAUI,打算试一下,于是用自己的Mac装上了visual studio新建了一个MAUI项目,接着试了在android emulator上的效果,一切正常。然后换到macos和ios时则提示了xcode版本的错误。macos留在不那么老的版本12.3,对应安装的xcode是13.4。

错误信息类似:

This version of Microsoft.iOS requires the iOS 16.4 SDK (shipped with Xcode 14.3). Either upgrade Xcode to get the required header files or set the managed linker behaviour to Link Framework SDKs Only in your project's iOS Build Options > Linker Behavior (to try to avoid the new APIs)

提示要么升级xcode,要么修改linker设置。

我这电脑系统不想升级,影响挺大的,打算修改设置,找了一圈才看到设置是右键点击项目-选择Properties,然后在ios和mac的build选项里,将link behavior从Don't link改成Link Framework SDK Only。然后保存设置,返回调试则可以正常启动mac上的应用和ios的应用了。

下一篇:  selenium对于伪类元素的操作
上一篇:  配置CUDA用于windows下yolo训练

共有0条评论

添加评论

暂无评论