Skip to content

Commit

Permalink
🎉 added support for macOS Catalyst 🥳
Browse files Browse the repository at this point in the history
  • Loading branch information
gurhub committed Nov 22, 2020
1 parent 82df9c9 commit 633d8a3
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions bin/surmagic
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,25 @@ private func archive(with target: Target, to directory: String) {
}

arguments.append("-sdk")
arguments.append(target.sdk.description)

if target.sdk == .macOSCatalyst {
arguments.append(SDK.macOS.description)
} else {
arguments.append(target.sdk.description)
}

arguments.append("-scheme")
arguments.append(target.scheme)

arguments.append("-archivePath")
arguments.append(archivePath)

arguments.append("SKIP_INSTALL=NO")


if target.sdk == .macOSCatalyst {
arguments.append("SUPPORTS_MACCATALYST=YES")
}

task.arguments = arguments

print(Colors.yellow + "\n 📦 Archiving for the \(target.sdk) SDK.)" + Colors.reset)
Expand Down Expand Up @@ -362,6 +371,7 @@ public enum SDK: String, Codable {
case iOS
case iOSSimulator
case macOS
case macOSCatalyst
case tvOS
case tvOSSimulator
case watchOS
Expand All @@ -372,6 +382,7 @@ public enum SDK: String, Codable {
case .iOS: return "iphoneos"
case .iOSSimulator: return "iphonesimulator"
case .macOS: return "macosx"
case .macOSCatalyst: return "macOSCatalyst"
case .tvOS: return "appletvos"
case .tvOSSimulator: return "appletvsimulator"
case .watchOS: return "watchos"
Expand Down

0 comments on commit 633d8a3

Please sign in to comment.