diff --git a/.gitignore b/.gitignore index 80bb1b3..7fc775a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ /.swiftpm /build /Project +/TestResults diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..919e362 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ + + +project:=OSLogTrace + +clean: + rm -rf $(project).xcodeproj + rm -rf Project + rm -rf TestResults + +define buildteston + xcodebuild -project $(project).xcodeproj -scheme $(project)_$(1) -resultBundleVersion 3 -resultBundlePath ./TestResults/$(1) -destination 'platform=$(1) Simulator,name=$(2)' build test +endef + +define buildtest + xcodebuild -project $(project).xcodeproj -scheme $(project)_$(1) -resultBundleVersion 3 -resultBundlePath ./TestResults/$(1) build test +endef + +build-test-all: + xcodegen + $(call buildtest,macOS) + $(call buildteston,iOS,iPhone 8) + $(call buildteston,tvOS,Apple TV) diff --git a/Package.swift b/Package.swift index 5f46646..0fbdf60 100644 --- a/Package.swift +++ b/Package.swift @@ -16,7 +16,6 @@ let package = Package( targets: ["OSLogTrace"]), ], dependencies: [ - .package(url: "https://github.com/nicklockwood/SwiftFormat.git", .upToNextMinor(from: "0.40.10")) ], targets: [ .target( diff --git a/build-test b/build-test deleted file mode 100755 index b69c197..0000000 --- a/build-test +++ /dev/null @@ -1,4 +0,0 @@ -xcodegen -xcodebuild -project OSLogTrace.xcodeproj -scheme OSLogTrace_macOS build test -xcodebuild -project OSLogTrace.xcodeproj -scheme OSLogTrace_iOS -destination 'platform=iOS Simulator,name=iPhone 8' build test -xcodebuild -project OSLogTrace.xcodeproj -scheme OSLogTrace_tvOS -destination 'platform=tvOS Simulator,name=Apple TV' build test