“interoperabilityMode is unavailable” 的意思是什么?

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

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

huangapple
  • 本文由 发表于 2023年6月19日 22:13:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/76507468.html
匿名

发表评论

匿名网友

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

确定