New Xcode 9 Build System doesn't handle multiple files with similar names

Originator:jp
Number:rdar://32572189 Date Originated:05-Jun-2017 02:00 PM
Status:Open Resolved:
Product:Developer Tools Product Version:9 Beta (9M136h)
Classification:Other Bug Reproducible:Always
 
Summary:
With emitter.c and Emitter.swift in the same module, Xcode 9’s shiny new build system detects duplicate symbols. Renaming Emitter.swift to SwiftEmitter.swift works around the issue.

Steps to Reproduce:
git clone https://github.com/jpsim/Yams.git
cd Yams
git checkout b53284b
DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild -scheme Yams -UseNewBuildSystem=YES
git mv Sources/Yams/Emitter.swift Sources/Yams/SwiftEmitter.swift
sed -i '' 's/Emitter\.swift/SwiftEmitter\.swift/g' Yams.xcodeproj/project.pbxproj
git mv Sources/Yams/Parser.swift Sources/Yams/SwiftParser.swift
sed -i '' 's/Parser\.swift/SwiftParser\.swift/g' Yams.xcodeproj/project.pbxproj
DEVELOPER_DIR=/Applications/Xcode-beta.app/Contents/Developer xcodebuild -scheme Yams -UseNewBuildSystem=YES

Expected Results:
First xcodebuild invocation should pass.

Actual Results:
First xcodebuild invocation fails, second one passes after renaming.

Version:
9 Beta (9M136h)

Notes:
Love the new build system! Great work 👏

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!