From 6fcb458c633a7c11803006d90415b4f562857f9f Mon Sep 17 00:00:00 2001 From: John Sundell Date: Sun, 9 Jun 2019 11:56:10 +0200 Subject: [PATCH] Enable Splash to be compiled for iOS as a Swift Package (#70) While Splash has supported iOS since its early days, this change makes it possible to compile the iOS version as a Swift Package, using Xcode 11. The changes require us to not make the assumption that != macOS == Linux. (Also git ignore the new `.swiftpm` directory that SwiftPM now uses) --- .gitignore | 1 + Tests/SplashTests/Core/SplashTestCase.swift | 2 +- Tests/SplashTests/Core/XCTestManifests.swift | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 7fb530a..c3cc2f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .DS_Store /.build /Packages +/.swiftpm /*.xcodeproj Package.resolved diff --git a/Tests/SplashTests/Core/SplashTestCase.swift b/Tests/SplashTests/Core/SplashTestCase.swift index 6e38378..b1725ca 100644 --- a/Tests/SplashTests/Core/SplashTestCase.swift +++ b/Tests/SplashTests/Core/SplashTestCase.swift @@ -9,7 +9,7 @@ import XCTest /// Abstract base class for all Splash tests class SplashTestCase: XCTestCase { - #if !os(Linux) + #if os(macOS) func testHasLinuxVerificationTest() { let concreteType = type(of: self) diff --git a/Tests/SplashTests/Core/XCTestManifests.swift b/Tests/SplashTests/Core/XCTestManifests.swift index 1489aa1..30b999c 100644 --- a/Tests/SplashTests/Core/XCTestManifests.swift +++ b/Tests/SplashTests/Core/XCTestManifests.swift @@ -6,7 +6,7 @@ import XCTest -#if !os(macOS) +#if os(Linux) public func makeLinuxTests() -> [XCTestCaseEntry] { return [