Skip to content

Commit e597c58

Browse files
authored
Merge pull request #669 from Quick/podspec-swift_versions
[CocoaPods] Support `swift_versions` which is available since CocoaPods 1.7
2 parents 5ecefac + f104b3c commit e597c58

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ matrix:
88
- &cocoapods
99
name: CocoaPods Lint
1010
os: osx
11-
osx_image: xcode10.1
11+
osx_image: xcode10.2
1212
install: bundle install
1313
script: ./test podspec
1414
- &xcode

Diff for: Nimble.podspec

+5-1
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,9 @@ Pod::Spec.new do |s|
5151
}
5252

5353
s.cocoapods_version = '>= 1.4.0'
54-
s.swift_version = '4.2'
54+
if s.respond_to?(:swift_versions) then
55+
s.swift_versions = ['4.2', '5.0']
56+
else
57+
s.swift_version = '4.2'
58+
end
5559
end

0 commit comments

Comments
 (0)