ibtool + XCBuild builds fail the first time

Originator:keithbsmiley
Number:rdar://34873329 Date Originated:07-Oct-2017 13:58
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 9.1 beta (9B37)
Classification:Other Bug Reproducible:Sometimes
 
Summary:
When trying to build a xib with ibtool, I've noticed that sometimes they fail to build the first time because "Command CompileXIB failed with a nonzero exit code". The logs around this don't have any reason for why they failed. If you either re-build the project, or copy the command and run it from the command line, they succeed.

Steps to Reproduce:
1. Build a project with xibs

Expected Results:
The build succeeds

Actual Results:
Sometimes the build fails only the first time

Version:
Xcode 9.1 beta (9B37)

Notes:
See the attached log 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!