From 00d60033ddd04c9979beb3ed22e7efb18e5d718c Mon Sep 17 00:00:00 2001 From: David Steinacher Date: Fri, 10 Nov 2023 09:06:10 +0100 Subject: [PATCH] skip visionOS cocoapod validation if visionOS is not present --- test | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test b/test index eca4c488b..117d09963 100755 --- a/test +++ b/test @@ -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 {