Skip to content

Commit ae8b084

Browse files
committed
Work around Xcode 13 archiving issue
1 parent 0406097 commit ae8b084

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private func machMessageHandler(_ arg: UnsafeMutableRawPointer) -> UnsafeMutable
108108
reply.Head.msgh_local_port = UInt32(MACH_PORT_NULL)
109109
reply.Head.msgh_remote_port = request.Head.msgh_remote_port
110110
reply.Head.msgh_size = UInt32(MemoryLayout<reply_mach_exception_raise_state_t>.size)
111-
reply.NDR = NDR_record
111+
reply.NDR = _NIMBLE_NDR_RECORD
112112

113113
if !handledfirstException {
114114
// Use the MiG generated server to invoke our handler for the request and fill in the rest of the reply structure

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,9 @@ public struct execTypesCountTuple<T: ExpressibleByIntegerLiteral> {
5151
public init() {
5252
}
5353
}
54+
55+
// A workaround for a duplicate symbol error when archiving on Xcode 13.
56+
// See: https://github.com/Quick/Nimble/issues/913
57+
public let _NIMBLE_NDR_RECORD = NDR_record
5458

5559
#endif

0 commit comments

Comments
 (0)