Skip to content

Commit a6c2a8f

Browse files
author
featherless
authored
Pin the Swift version in the podspec. (#13)
Part of https://github.com/material-components/material-components-ios/issues/9363 Precursor to #12 because pod lib lint fails otherwise: ``` -> MDFTesting (1.0.2) - WARN | [MDFTesting/MDFTesting] swift: The validator used Swift `4.0` by default because no Swift version was specified. To specify a Swift version during validation, add the `swift_versions` attribute in your podspec. Note that usage of a `.swift-version` file is now deprecated. ``` Tested by running: ``` pod lib lint ```
1 parent 916ab1d commit a6c2a8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: MDFTesting.podspec

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Pod::Spec.new do |s|
1010
s.requires_arc = true
1111
s.ios.deployment_target = '9.0'
1212
s.default_subspec = "MDFTesting"
13+
s.swift_version = '5.0'
1314

1415
s.subspec "MDFTesting" do |ss|
1516
ss.public_header_files = "src/*.h"

0 commit comments

Comments
 (0)