diff --git a/lib/cocoapods/generator/prepare_artifacts_script.rb b/lib/cocoapods/generator/prepare_artifacts_script.rb index 0969ba3ac4..78d6aa182d 100644 --- a/lib/cocoapods/generator/prepare_artifacts_script.rb +++ b/lib/cocoapods/generator/prepare_artifacts_script.rb @@ -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 diff --git a/spec/cocoapods-integration-specs b/spec/cocoapods-integration-specs index b17ac6159a..366c3fdfc1 160000 --- a/spec/cocoapods-integration-specs +++ b/spec/cocoapods-integration-specs @@ -1 +1 @@ -Subproject commit b17ac6159aab5fd28029ce7d4a9bc423c81658ef +Subproject commit 366c3fdfc168b5cc10ee39151781c5dc4b45f589