From 8c80624800af9aa898e41066fc941545df5b28af Mon Sep 17 00:00:00 2001 From: Sho Ikeda Date: Mon, 18 Nov 2019 11:54:48 +0900 Subject: [PATCH] [Swift 5.1] Enable Module Stability https://swift.org/blog/swift-5-1-released/#module-stability --- .travis.yml | 16 +++++++++++----- Configurations/APIKit.xcconfig | 1 + 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5835af9b..e8f4a929 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,29 +8,35 @@ matrix: name: CocoaPods Lint os: osx language: objective-c - osx_image: xcode10.2 + osx_image: xcode10.3 script: - pod lib lint --allow-warnings - &xcode - name: Xcode 10.2 / Swift 5.0 + name: Xcode 10.3 / Swift 5.0 os: osx language: objective-c - osx_image: xcode10.2 + osx_image: xcode10.3 script: - set -o pipefail - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release ENABLE_TESTABILITY=YES | xcpretty -c - - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk iphonesimulator -destination "name=iPhone 6s" ENABLE_TESTABILITY=YES | xcpretty -c + - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk iphonesimulator -destination "name=iPhone 8" ENABLE_TESTABILITY=YES | xcpretty -c - xcodebuild build-for-testing test-without-building -workspace APIKit.xcworkspace -scheme APIKit -configuration Release -sdk appletvsimulator -destination "name=Apple TV" ENABLE_TESTABILITY=YES | xcpretty -c after_success: - bash <(curl -s https://codecov.io/bash) + - <<: *xcode + name: Xcode 11.2 / Swift 5.1 + osx_image: xcode11.2 - &swiftpm name: SwiftPM / Darwin / Swift 5.0 os: osx language: generic - osx_image: xcode10.2 + osx_image: xcode10.3 script: - swift build - swift test + - <<: *swiftpm + name: SwiftPM / Darwin / Swift 5.1 + osx_image: xcode11.2 notifications: email: false diff --git a/Configurations/APIKit.xcconfig b/Configurations/APIKit.xcconfig index f84c0571..8b0bdbfc 100644 --- a/Configurations/APIKit.xcconfig +++ b/Configurations/APIKit.xcconfig @@ -22,3 +22,4 @@ LD_RUNPATH_SEARCH_PATHS[sdk=watch*] = $(inherited) @executable_path/Frameworks @ LD_RUNPATH_SEARCH_PATHS[sdk=appletv*] = $(inherited) @executable_path/Frameworks @loader_path/Frameworks APPLICATION_EXTENSION_API_ONLY = YES; +BUILD_LIBRARY_FOR_DISTRIBUTION = YES;