MacOS 编译报错 error redefinition of module 'SwiftBridging' - PEANUT996
Opened this issue · 0 comments
https://peanut996.com/macos-xcode-cmdtool/?
原因是默认xcode-select --install 默认安装的 Command Line Tools有问题🤨,请自行去官网重新下载适合系统版本的 Command Line Tools
下载地址: https://developer.apple.com/download/all/
仅供参考: macOS 15.0.1 下载对应版本 Command Line Tools for Xcode 16 安装即可。
下面是报错日志:
warning**:** mac-notification-sys@0.6.2: /Library/Developer/CommandLineTools/usr/include/swift/module.modulemap:13:8: error: redefinition of module 'SwiftBridging' warning**:** mac-notification-sys@0.6.2: module SwiftBridging { warning**:** mac-notification-sys@0.6.2: ^ warning**:** mac-notification-sys@0.6.2: /Library/Developer/CommandLineTools/usr/include/swift/bridging.modulemap:13:8: note: previously defined here warning**:** mac-notification-sys@0.6.2: module SwiftBridging {