英文:
What does xcode mean "interoperabilityMode is unavailable"?
问题
尝试使用新的C++互操作功能编写一个SPM包,当我添加swiftSettings: [.interoperabilityMode(.Cxx)])
时,我收到错误消息"interoperabilityMode is unavailable",这是什么意思?我需要在Xcode设置中启用某些内容以获取新的C++互操作功能吗?
英文:
Trying to write an SPM package using the new C++ interop features when I put in swiftSettings: [.interoperabilityMode(.Cxx)])
I get the error "interoperabilityMode is unavailable" what does that mean? Do I need to enable something in xcode settings to get the new C++ interop stuff?
答案1
得分: 0
需要将包定义中的第一行更改为:
// swift-tools-version: 5.9
英文:
Needed to change the first line in the package definition to:
// swift-tools-version: 5.9
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论