File tree Expand file tree Collapse file tree 5 files changed +30
-9
lines changed Expand file tree Collapse file tree 5 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 1- osx_image : xcode10.2
1+ osx_image : xcode12.3
22language : objective-c
33sudo : required
44env :
55 global :
66 - PROJECT="RxKeyboard.xcodeproj"
77 - SCHEME="RxKeyboard-Package"
88 - IOS_SDK="iphonesimulator"
9- - MACOS_SDK="macosx10.14 "
10- - TVOS_SDK="appletvsimulator12.2 "
11- - WATCHOS_SDK="watchsimulator5.2 "
9+ - MACOS_SDK="macosx11.0 "
10+ - TVOS_SDK="appletvsimulator9.0 "
11+ - WATCHOS_SDK="watchsimulator3.0 "
1212 - FRAMEWORK="RxKeyboard"
1313 matrix :
14- - SDK="$IOS_SDK" TEST=0 SWIFT_VERSION=5.0 DESTINATION="platform=iOS Simulator,name=iPhone 8"
14+ - SDK="$IOS_SDK" TEST=0 SWIFT_VERSION=5.1 DESTINATION="platform=iOS Simulator,name=iPhone 8"
1515
1616install :
1717 - swift --version
@@ -49,7 +49,7 @@ before_deploy:
4949 - bundle exec swiftproj configure-scheme --project RxKeyboard.xcodeproj --scheme RxKeyboard-Package --buildable-targets RxKeyboard
5050 - bundle exec swiftproj remove-framework --project RxKeyboard.xcodeproj --target RxKeyboard --framework RxCocoa.framework
5151 - bundle exec swiftproj remove-framework --project RxKeyboard.xcodeproj --target RxKeyboard --framework RxCocoaRuntime.framework
52- - carthage bootstrap
52+ - ./ carthage.sh bootstrap
5353 - carthage build --no-skip-current --verbose | xcpretty -c
5454 - carthage archive RxKeyboard
5555
Original file line number Diff line number Diff line change 1- // swift-tools-version:5.0
1+ // swift-tools-version:5.1
22
33import PackageDescription
44
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
1010 s . source_files = 'Sources/**/*.swift'
1111 s . frameworks = 'UIKit'
1212 s . requires_arc = true
13- s . swift_version = "5.0 "
13+ s . swift_version = "5.1 "
1414
1515 s . dependency 'RxSwift' , '~> 6.0'
1616 s . dependency 'RxCocoa' , '~> 6.0'
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ extension RxKeyboard: UIGestureRecognizerDelegate {
159159 _ gestureRecognizer: UIGestureRecognizer ,
160160 shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer
161161 ) -> Bool {
162- return gestureRecognizer === self . panRecognizer
162+ gestureRecognizer === self . panRecognizer
163163 }
164164
165165}
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # carthage.sh
4+ # Usage example: ./carthage.sh build --platform iOS
5+
6+ set -euo pipefail
7+
8+ xcconfig=$( mktemp /tmp/static.xcconfig.XXXXXX)
9+ trap ' rm -f "$xcconfig"' INT TERM HUP EXIT
10+
11+ # For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise
12+ # the build will fail on lipo due to duplicate architectures.
13+
14+ CURRENT_XCODE_VERSION=$( xcodebuild -version | grep " Build version" | cut -d' ' -f3)
15+ echo " EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_$CURRENT_XCODE_VERSION = arm64 arm64e armv7 armv7s armv6 armv8" >> $xcconfig
16+
17+ echo ' EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_$(XCODE_PRODUCT_BUILD_VERSION))' >> $xcconfig
18+ echo ' EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))' >> $xcconfig
19+
20+ export XCODE_XCCONFIG_FILE=" $xcconfig "
21+ carthage build " $@ "
You can’t perform that action at this time.
0 commit comments