Setting SWIFT_OBJC_INTERFACE_HEADER_NAME to nothing causes XCBuild failures

Originator:keithbsmiley
Number:rdar://42628170 Date Originated:26-Jul-2018 10:14 AM
Status:Duplicate of 41799852 (closed) Resolved:Maybe Xcode 10 beta 5?
Product:Developer Tools Product Version:Xcode 10.0 beta 4 (10L213o)
Classification:Other Bug Reproducible:Always
 
Summary:
For a swift static library target if you set SWIFT_OBJC_INTERFACE_HEADER_NAME to an empty string, meaning this header won't be generated and then build, the build will fail.

Steps to Reproduce:
1. Create a new swift static library project
2. Change the SWIFT_OBJC_INTERFACE_HEADER_NAME build setting for your target to nothing
3. Build (you may need to clean, and rebuild to see the failure)

Expected Results:
The build succeeds

Actual Results:
The build fails with this error:

```
error: Build input file cannot be found: '/Users/ksmiley/Library/Developer/Xcode/DerivedData/LibraryBuildFailure-dnekwvitsjokmmgjrbpxwsjaopey/Build/Intermediates.noindex/LibraryBuildFailure.build/Debug-iphonesimulator/LibraryBuildFailure.build/Objects-normal/x86_64'```

Version:
Xcode 10.0 beta 4 (10L213o)

Notes:
See the attached project for an example

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!