We just built our app with Xcode 15.0.1 GM and we are getting the following error: Redefinition of module 'SwiftBridging'. We have mode no changes and the app builds fine with Xcode 15.0. Is anyone else experiencing this issue?
Xcode 15.0.1 GM - Redefinition of module SwiftBridging
Upon further investigation we found that the build process was referencing two different module.modulemap
files for the SwiftBridging
module:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/swift/module.modulemap
/Applications/Xcode_15.0.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/swift/module.modulemap
After renaming Xcode_15.0.1.app
to Xcode.app
the app is able to build successfully. We also have success when having no Xcode.app
file in Applications
with this structure:
Xcode_14.3.1.app
Xcode_15.0.0.app
Xcode_15.0.1.app
Xcode-beta.app
Had the same issue here with Xcode 16.1 (Current AppStore Xcode.app) and Xcode16.0 manually downloaded. Renaming the Xcode.app in the /Applications to something else than Xcode.app solved the problem.