Commit 7552843a authored by Keith Smiley's avatar Keith Smiley Committed by Samuel Giddins

Allow EXPANDED_CODE_SIGN_IDENTITY to be unset

This is unset for some test target configurations.
parent 7d6405dc
...@@ -44,6 +44,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -44,6 +44,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Samuel Giddins](https://github.com/segiddins) [Samuel Giddins](https://github.com/segiddins)
[#7570](https://github.com/CocoaPods/CocoaPods/pull/7570) [#7570](https://github.com/CocoaPods/CocoaPods/pull/7570)
* Allow `EXPANDED_CODE_SIGN_IDENTITY` to be unset.
[Keith Smiley](https://github.com/keith)
[#7708](https://github.com/CocoaPods/CocoaPods/issues/7708)
## 1.5.2 (2018-05-09) ## 1.5.2 (2018-05-09)
......
...@@ -138,7 +138,7 @@ module Pod ...@@ -138,7 +138,7 @@ module Pod
# Signs a framework with the provided identity # Signs a framework with the provided identity
code_sign_if_enabled() { code_sign_if_enabled() {
if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then
# Use the current code_sign_identitiy # Use the current code_sign_identitiy
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment