自从macOS升级之后,我升级了所有的开发环境(Xcode,等等)。并希望使用现有的macOS应用软件项目进行构建,但我得到了以下两个错误,无法构建。
clang : error : linker command failed with exit code 1 (use -v to see invocation)MMP : error MM5309: Failed to execute the tool 'clang', it failed with an error code '1'. Please check the build log for details.我做了很多搜索,但我不知道该怎么做。如果有人知道该怎么做,我很感激你能给我的任何建议。
发布于 2022-11-08 01:44:21
感谢您的评论。我正在检查Xamarin GitHub存储库,最近还问了一个类似的问题。
https://github.com/xamarin/xamarin-macios/issues/16616
看起来SDK更新还没有赶上Xcode 14.1。
我安装了一个软件包,它很快就会正式发布,并且能够在没有任何问题的情况下构建。
另一个解决办法是:
暂时将Xcode 14.1恢复到Xcode 14.0.1似乎可以防止此问题。
https://developer.apple.com/download/all/?q=xcode
VisualStudioCommunity2019用于Mac版本8.10.25 (build 2)
并证实了它的作用。
https://stackoverflow.com/questions/74345141
复制相似问题