The new build system passes undefined_arch as the value for the ARCH environment variable when running shell script build phases. The value was previously not well defined. Any shell scripts depending on this value must behave correctly for all defined architectures being built, available via the ARCHS environment variable.
This seems to only apply when requesting the interface information from SourceKit; The ARCHS environment variable will have to be used instead.
See release notes here: https://download.developer.apple.com/Documentation/Xcode_10_beta_Release_Notes/Xcode_10_Beta_Release_Notes.pdf
This seems to only apply when requesting the interface information from SourceKit; The
ARCHS
environment variable will have to be used instead.