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
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: