diff --git a/scripts/native-podspec.sh b/scripts/native-podspec.sh index 509479a10..fd822d12a 100644 --- a/scripts/native-podspec.sh +++ b/scripts/native-podspec.sh @@ -1,13 +1,13 @@ #!/usr/bin/env sh - -export NATIVE_PUBLISH=true +-set -eo pipefail case $1 in lint) - pod spec lint ios/CapacitorCordova.podspec --allow-warnings - pod spec lint ios/Capacitor.podspec --allow-warnings;; + pod lib lint ios/CapacitorCordova.podspec --allow-warnings + pod lib lint ios/Capacitor.podspec --allow-warnings;; publish) + export NATIVE_PUBLISH=true pod trunk push ios/CapacitorCordova.podspec --allow-warnings pod trunk push ios/Capacitor.podspec --allow-warnings;;