Skip to content

Commit 0842ea4

Browse files
authored
Add arm64 simulator slice to binary builds. (#6950)
* WIP: Add arm64 simulator slice to binary builds. This re-architects things to split by platform and build for architectures together instead of having to lipo them together. Still need to fix Carthage and test a full release. * Revert Catalyst to build x86_64, matching the old distribution * Fixed Carthage support. * Spelling fix.
1 parent 6225f7f commit 0842ea4

File tree

4 files changed

+314
-204
lines changed

4 files changed

+314
-204
lines changed

ReleaseTooling/Sources/ZipBuilder/CocoaPodUtils.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,10 +543,15 @@ enum CocoaPodUtils {
543543
""")
544544
case let .success(output):
545545
let version = output.components(separatedBy: ".")
546+
guard version.count >= 2 else {
547+
fatalError("Failed to parse CocoaPods version: \(version)")
548+
}
549+
546550
let major = Int(version[0])
547551
guard let minor = Int(version[1]) else {
548552
fatalError("Failed to parse minor version from \(version)")
549553
}
554+
550555
if major == 1, minor < 9 {
551556
fatalError("CocoaPods version must be at least 1.9.0. Using \(output)")
552557
}

0 commit comments

Comments
 (0)