Skip to content

Commit 930593a

Browse files
authored
Merge pull request #210 from layoutBox/fix_podspec_for_swift_5.1.1
Update the podspec to support all Swift versions
2 parents 7455588 + e48fe63 commit 930593a

File tree

3 files changed

+22
-23
lines changed

3 files changed

+22
-23
lines changed

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: objective-c
2-
osx_image: xcode11
2+
osx_image: xcode11.2
33

44
cache:
55
- bundler

Diff for: PinLayout.podspec

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@
88

99
Pod::Spec.new do |spec|
1010
spec.name = "PinLayout"
11-
spec.version = "1.8.12"
11+
spec.version = "1.8.13"
1212
spec.summary = "Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast."
1313
spec.description = "Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer]"
1414
spec.homepage = "https://github.com/layoutBox/PinLayout"
1515
spec.license = "MIT license"
1616
spec.author = { "Luc Dion" => "[email protected]" }
1717
spec.source = { :git => "https://github.com/layoutBox/PinLayout.git", :tag => "#{spec.version}" }
1818
spec.source_files = "Sources/**/*.swift"
19-
spec.swift_version = ['4.2', '5.0', '5.1']
2019

2120
spec.ios.deployment_target = '8.0'
2221
spec.ios.frameworks = 'Foundation', 'CoreGraphics', 'UIKit'

Diff for: build-ci.sh

+20-20
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ echo "===============================" &&
88
echo "PinLayout-iOS" &&
99
echo "===============================" &&
1010
time xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-iOS \
11-
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator13.0 \
12-
-destination 'platform=iOS Simulator,name=iPhone 8,OS=13.0' \
11+
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator13.2 \
12+
-destination 'platform=iOS Simulator,name=iPhone 8,OS=13.2' \
1313
| xcpretty &&
1414

1515
echo "===============================" &&
1616
echo "PinLayout-tvOS" &&
1717
echo "===============================" &&
1818
time xcodebuild build -project PinLayout.xcodeproj -scheme PinLayout-tvOS \
19-
-derivedDataPath $DERIVED_DATA -sdk appletvsimulator13.0 \
20-
-destination 'platform=tvOS Simulator,name=Apple TV 4K,OS=13.0' \
19+
-derivedDataPath $DERIVED_DATA -sdk appletvsimulator13.2 \
20+
-destination 'platform=tvOS Simulator,name=Apple TV 4K,OS=13.2' \
2121
| xcpretty &&
2222

2323
echo "===============================" &&
@@ -31,39 +31,39 @@ echo "===============================" &&
3131
echo "PinLayoutSample" &&
3232
echo "===============================" &&
3333
time xcodebuild build -workspace PinLayout.xcworkspace -scheme PinLayoutSample \
34-
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator13.0 \
34+
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator13.2 \
3535
-destination 'platform=iOS Simulator,name=iPhone 7,OS=11.4' \
3636
| xcpretty &&
3737

3838
echo "===============================" &&
3939
echo "iOS unit test" &&
4040
echo "===============================" &&
4141
time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS \
42-
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator13.0 \
42+
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator13.2 \
4343
-destination 'platform=iOS Simulator,name=iPhone 7,OS=11.4' \
4444
| xcpretty &&
4545

4646
time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS \
47-
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator13.0 \
47+
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator13.2 \
4848
-destination 'platform=iOS Simulator,name=iPhone 8,OS=12.2' \
4949
| xcpretty &&
5050

5151
time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-iOS \
52-
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator13.0 \
53-
-destination 'platform=iOS Simulator,name=iPhone 8,OS=13.0' \
52+
-derivedDataPath $DERIVED_DATA -sdk iphonesimulator13.2 \
53+
-destination 'platform=iOS Simulator,name=iPhone 8,OS=13.2' \
5454
| xcpretty &&
5555

5656
# echo "==============================="
5757
# echo "tvOS unit test"
5858
# echo "==============================="
5959
# time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-tvOS \
60-
# -derivedDataPath $DERIVED_DATA -sdk appletvsimulator13.0 \
60+
# -derivedDataPath $DERIVED_DATA -sdk appletvsimulator13.2 \
6161
# -destination 'platform=tvOS Simulator,name=Apple TV 4K,OS=12.2' \
6262
# | xcpretty
6363

6464
# time xcodebuild build test -workspace PinLayout.xcworkspace -scheme PinLayout-tvOS \
65-
# -derivedDataPath $DERIVED_DATA -sdk appletvsimulator13.0 \
66-
# -destination 'platform=tvOS Simulator,name=Apple TV 4K,OS=13.0' \
65+
# -derivedDataPath $DERIVED_DATA -sdk appletvsimulator13.2 \
66+
# -destination 'platform=tvOS Simulator,name=Apple TV 4K,OS=13.2' \
6767
# | xcpretty
6868

6969
# echo "==============================="
@@ -80,8 +80,8 @@ cd TestProjects/cocoapods/ios &&
8080
rm -rf $DERIVED_DATA &&
8181
pod install &&
8282
time xcodebuild clean build -workspace PinLayout-iOS.xcworkspace -scheme PinLayout-iOS \
83-
-sdk iphonesimulator13.0 -derivedDataPath $DERIVED_DATA \
84-
-destination 'platform=iOS Simulator,name=iPhone 8,OS=13.0' \
83+
-sdk iphonesimulator13.2 -derivedDataPath $DERIVED_DATA \
84+
-destination 'platform=iOS Simulator,name=iPhone 8,OS=13.2' \
8585
| xcpretty &&
8686
cd ../../.. &&
8787

@@ -105,8 +105,8 @@ cd TestProjects/cocoapods/tvos &&
105105
rm -rf $DERIVED_DATA &&
106106
pod install &&
107107
time xcodebuild clean build -workspace PinLayout-tvOS.xcworkspace -scheme PinLayout-tvOS \
108-
-sdk appletvsimulator13.0 -derivedDataPath $DERIVED_DATA \
109-
-destination 'platform=tvOS Simulator,name=Apple TV,OS=13.0' \
108+
-sdk appletvsimulator13.2 -derivedDataPath $DERIVED_DATA \
109+
-destination 'platform=tvOS Simulator,name=Apple TV,OS=13.2' \
110110
| xcpretty &&
111111
cd ../../.. &&
112112

@@ -120,9 +120,9 @@ rm Cartfile &&
120120
echo "git \"$TRAVIS_BUILD_DIR\" \"$TRAVIS_BRANCH\"" > Cartfile &&
121121
carthage update --use-ssh --platform iOS &&
122122
time xcodebuild clean build -project PinLayout-Carthage-iOS.xcodeproj \
123-
-scheme PinLayout-Carthage-iOS -sdk iphonesimulator13.0 \
123+
-scheme PinLayout-Carthage-iOS -sdk iphonesimulator13.2 \
124124
-derivedDataPath $DERIVED_DATA \
125-
-destination 'platform=iOS Simulator,name=iPhone 8,OS=13.0' \
125+
-destination 'platform=iOS Simulator,name=iPhone 8,OS=13.2' \
126126
| xcpretty &&
127127
cd ../../.. &&
128128

@@ -139,8 +139,8 @@ time bundle exec pod lib lint --allow-warnings
139139
# rm -rf .build
140140
# rm Package.pins
141141
# swift package show-dependencies --format json
142-
# time xcodebuild clean build -project PinLayout-Carthage-iOS.xcodeproj -scheme PinLayout-Carthage-iOS -sdk iphonesimulator13.0 -derivedDataPath $DERIVED_DATA \
143-
# -destination 'platform=iOS Simulator,name=iPhone 8,OS=13.0' \
142+
# time xcodebuild clean build -project PinLayout-Carthage-iOS.xcodeproj -scheme PinLayout-Carthage-iOS -sdk iphonesimulator13.2 -derivedDataPath $DERIVED_DATA \
143+
# -destination 'platform=iOS Simulator,name=iPhone 8,OS=13.2' \
144144
# | xcpretty
145145
# cd ../../..
146146
#

0 commit comments

Comments
 (0)