Consider `XCODE_PRODUCT_BUILD_VERSION` alongside `EXPANDED_CODE_SIGN_IDENTITY` to address Xcode 10.
merged 1 commit into
jdhealy:with-«EXPANDED_CODE_SIGN_IDENTITY»-unset-and-«XCODE_PRODUCT_BUILD_VERSION»-set→treat-«EXPANDED_CODE_SIGN_IDENTITY»-as-having-empty-stringJun 26, 2018
Treat `EXPANDED_CODE_SIGN_IDENTITY` — when `EXPANDED_CODE_SIGN_IDENTI…
…TY` is unset and `XCODE_PRODUCT_BUILD_VERSION` is set — with the same behavior as having empty string.
Xcode beta release `10L176w` (and potentially more) seem to omit environment variables set to an empty string in Run Script Phases (and potentially other places). So with the heuristic of `XCODE_PRODUCT_BUILD_VERSION` being set signifying a Run Script Phases (or other within Xcode scenario), ignore the error by returning `nil`, as is done when `codeSigningAllowed()` is false.
Credit and thanks to @clayellis for reporting the behavior change and iterating on code changes.