Skip to content

Commit

Permalink
Fix an issue when including XCFrameworks in macOS apps
Browse files Browse the repository at this point in the history
${EFFECTIVE_PLATFORM_NAME} will only be set if applicable for the current platform.

Closes #9572
  • Loading branch information
amorde committed Feb 29, 2020
1 parent 4d37bbb commit 56f6d23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Expand Up @@ -12,7 +12,9 @@ To install release candidates run `[sudo] gem install cocoapods --pre`

##### Bug Fixes

* None.
* Fix an issue that caused a build failure with vendored XCFrameworks on macOS
[Eric Amorde](https://github.com/amorde)
[#9574](https://github.com/CocoaPods/CocoaPods/pull/9574)


## 1.9.0 (2020-02-25)
Expand Down
2 changes: 1 addition & 1 deletion lib/cocoapods/generator/prepare_artifacts_script.rb
Expand Up @@ -148,7 +148,7 @@ def script
if [[ "$PLATFORM_NAME" == *"simulator" ]]; then
target_variant="simulator"
fi
if [[ "$EFFECTIVE_PLATFORM_NAME" == *"maccatalyst" ]]; then
if [[ ! -z ${EFFECTIVE_PLATFORM_NAME+x} && "$EFFECTIVE_PLATFORM_NAME" == *"maccatalyst" ]]; then
target_variant="maccatalyst"
fi
for i in ${!paths[@]}; do
Expand Down

0 comments on commit 56f6d23

Please sign in to comment.