Skip to content

Commit

Permalink
Work around CocoaPods lint error related to .swift-version
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesyo committed Apr 11, 2018
1 parent 3885bf6 commit 1bfbc64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ function test_podspec {
echo "Gathering CocoaPods installation information..."
run bundle exec pod --version
echo "Linting podspec..."
# To work around the lint error: "ERROR | swift: Specification `Nimble` specifies an inconsistent `swift_version` (`4.0`) compared to the one present in your `.swift-version` file (`4.1`). Please remove the `.swift-version` file which is now deprecated and only use the `swift_version` attribute within your podspec."
# `.swift-version` is for swiftenv, not for CocoaPods, so we can't remove the file as suggested.
run mv .swift-version .swift-version.backup
# Note: remove `--allow-warnings` once old Matcher API has been removed
run bundle exec pod lib lint Nimble.podspec --allow-warnings
run mv .swift-version.backup .swift-version
}

function test_swiftpm {
Expand Down

0 comments on commit 1bfbc64

Please sign in to comment.