Skip to content

Commit d831761

Browse files
authored
Merge pull request Quick#687 from Quick/fix-ios-tvos-device-builds
Fix device builds for iOS and tvOS
2 parents ed9881d + 13fbf84 commit d831761

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlBadInstructionException.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1919
//
2020

21-
#if os(macOS) || os(iOS)
21+
#if (os(macOS) || os(iOS)) && arch(x86_64)
2222

2323
import Foundation
2424

Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlCatchBadInstruction.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1919
//
2020

21-
#if os(macOS) || os(iOS)
21+
#if (os(macOS) || os(iOS)) && arch(x86_64)
2222

2323
import Foundation
2424
import Swift

Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlCatchBadInstructionPosix.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1919
//
2020

21-
#if os(tvOS)
21+
#if os(tvOS) && targetEnvironment(simulator)
2222

2323
import Foundation
2424

Carthage/Checkouts/CwlPreconditionTesting/Sources/CwlPreconditionTesting/CwlDarwinDefinitions.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1919
//
2020

21-
#if os(macOS) || os(iOS)
21+
#if (os(macOS) || os(iOS)) && arch(x86_64)
2222

2323
import Darwin
2424

test

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ function run {
5454
}
5555

5656
function test_ios {
57+
run set -o pipefail && xcodebuild -project Nimble.xcodeproj -scheme "Nimble-iOS" -configuration "Debug" -destination "generic/platform=iOS" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build | xcpretty
58+
5759
run osascript -e 'tell app "Simulator" to quit'
5860
run set -o pipefail && xcodebuild -project Nimble.xcodeproj -scheme "Nimble-iOS" -configuration "Debug" -sdk "iphonesimulator$BUILD_IOS_SDK_VERSION" -destination "name=iPad Pro (11-inch),OS=$RUNTIME_IOS_SDK_VERSION" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build-for-testing test-without-building | xcpretty
5961

@@ -62,6 +64,8 @@ function test_ios {
6264
}
6365

6466
function test_tvos {
67+
run set -o pipefail && xcodebuild -project Nimble.xcodeproj -scheme "Nimble-tvOS" -configuration "Debug" -destination "generic/platform=tvOS" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build | xcpretty
68+
6569
run osascript -e 'tell app "Simulator" to quit'
6670
run set -o pipefail && xcodebuild -project Nimble.xcodeproj -scheme "Nimble-tvOS" -configuration "Debug" -sdk "appletvsimulator$BUILD_TVOS_SDK_VERSION" -destination "name=Apple TV,OS=$RUNTIME_TVOS_SDK_VERSION" OTHER_SWIFT_FLAGS='$(inherited) -suppress-warnings' build-for-testing test-without-building | xcpretty
6771
}

0 commit comments

Comments
 (0)