[Xcode 10, R.swift] All files has to be known before build process

Originator:aleksander.grzyb
Number:rdar://42378114 Date Originated:19-Jul-2018 02:05 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 10 Beta 2
Classification:Other Bug Reproducible:Always
 
Summary:
For our project we use R.swift (https://github.com/mac-cain13/R.swift) to generate source file as a part of build phase and we hit following problem https://github.com/mac-cain13/R.swift/issues/372.


Steps to Reproduce:
Build the app when git is in pristine state and it's using R.swift.

Expected Results:
Build succeeds.

Actual Results:
Build fails.

Version:
Xcode 10 Beta 2

Notes:

Comments

Note that according to the issue referenced, the problem is likely that one of your targets is using a file for which there is no declared task generating that file. The new build system is more demanding than the old that all inputs to all tasks be declared so it can track them, so (for example), you can’t have a shell script build phase generating that file without declaring it as an output. So it is likely that the resolution will involve changes to your project to set up that dependency.

By aleksander.grzyb at Aug. 6, 2018, 7:36 a.m. (reply...)

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!