Skip to content

Commit

Permalink
skip visionOS cocoapod validation if visionOS is not present
Browse files Browse the repository at this point in the history
  • Loading branch information
stonko1994 committed Nov 10, 2023
1 parent a8d72dd commit 00d6003
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,16 @@ function test_xcode_spm_visionos {
}

function test_podspec {
PLATFORMS="ios,tvos,watchos,macos"
if [[ ! -z $LATEST_VISIONOS_SDK_VERSION ]]; then
PLATFORMS="$PLATFORMS,visionos"
fi

echo "Gathering CocoaPods installation information..."
run bundle exec pod --version
echo "Linting podspec..."
# Note: remove `--allow-warnings` once old Matcher API has been removed
run bundle exec pod lib lint Nimble.podspec --allow-warnings --skip-import-validation --verbose
run bundle exec pod lib lint Nimble.podspec --allow-warnings --skip-import-validation --verbose --platforms=$PLATFORMS
}

function test_swiftpm {
Expand Down

0 comments on commit 00d6003

Please sign in to comment.