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 5e19b85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 5e19b85

Please sign in to comment.