Skip to content

Commit

Permalink
fix: pod-lib-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
QiuZhiFei committed Jul 6, 2021
1 parent 279cfb1 commit 08bb89e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions xchelper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ function get_xcode_destination() {
if [ -z $XCODE_DESTINATION ]; then
local device_name=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
XCODE_DESTINATION="platform=iOS Simulator,name=$device_name"
echo $XCODE_DESTINATION
fi
}

Expand Down Expand Up @@ -161,7 +160,11 @@ function swiftlint() {
}

function pod-lib-lint() {
pod lib lint --allow-warnings --verbose
if [ -e *.podspec ]; then
pod lib lint --allow-warnings --verbose
else
echo "warning: No such file or directory: '*.podspec', skipping ..."
fi
}

function pod-trunk-deploy() {
Expand Down

0 comments on commit 08bb89e

Please sign in to comment.