ollieatkinson / Guise

A tool to generate the Swift public interface for Frameworks and Libraries
MIT License
53 stars 5 forks source link

Xcode 10 sets ARCH/CURRENT_ARCH to "undefined_arch", resulting in incorrect args passed to SourceKit #26

Closed ollieatkinson closed 5 years ago

ollieatkinson commented 5 years ago

See release notes here: https://download.developer.apple.com/Documentation/Xcode_10_beta_Release_Notes/Xcode_10_Beta_Release_Notes.pdf

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.