From 0bfc4587d01cfc796b6c7e118fc631333dd8ab33 Mon Sep 17 00:00:00 2001 From: Matthew Gallagher Date: Thu, 24 Oct 2019 20:26:03 +1100 Subject: [PATCH 1/2] Updated dependency and moved to non-beta. --- .gitignore | 1 + Package.swift | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 00b75fa..de34bb1 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ xcuserdata/ Package.pins Package.resolved Packages/ +.swiftpm \ No newline at end of file diff --git a/Package.swift b/Package.swift index 5413dfe..305f4b1 100644 --- a/Package.swift +++ b/Package.swift @@ -3,11 +3,11 @@ import PackageDescription let package = Package( name: "CwlUtils", - products: [ - .library(name: "CwlUtils", type: .dynamic, targets: ["CwlUtils"]), + products: [ + .library(name: "CwlUtils", type: .dynamic, targets: ["CwlUtils"]), ], dependencies: [ - .package(url: "https://github.com/mattgallagher/CwlPreconditionTesting.git", from: "1.2.0"), + .package(url: "https://github.com/mattgallagher/CwlPreconditionTesting.git", from: "2.0.0"), ], targets: [ .target( From 158d42ba7eacb69650964946e84208516ea440bf Mon Sep 17 00:00:00 2001 From: "Popescu, Oana" Date: Mon, 9 Nov 2020 12:21:33 +0200 Subject: [PATCH 2/2] Fixed Xcode 12 linking error: Undefined symbols for architecture arm64: "type metadata accessor for CwlUtils.(DequeBuffer in _205C59B1D6FDABD6FAE37E9199C346A4)", referenced from: CwlSignal.Signal.send(result: Swift.Result, predecessor: Swift.Unmanaged?, activationCount: Swift.Int, activated: Swift.Bool) -> CwlSignal.SignalSendError? in CwlSignal.o CwlSignal.Signal.(specializedSyncPop in _ACD91BA4CE4CE61201EA964A7D8CD939)() -> () in CwlSignal.o CwlSignal.Signal.(resumeIfPossibleInternal in _ACD91BA4CE4CE61201EA964A7D8CD939)(dw: inout CwlUtils.DeferredWork) -> () in CwlSignal.o CwlSignal.Signal.(pop in _ACD91BA4CE4CE61201EA964A7D8CD939)() -> Swift.Result? in CwlSignal.o --- Sources/CwlUtils/CwlDeque.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/CwlUtils/CwlDeque.swift b/Sources/CwlUtils/CwlDeque.swift index 0c2beac..52ea6b9 100644 --- a/Sources/CwlUtils/CwlDeque.swift +++ b/Sources/CwlUtils/CwlDeque.swift @@ -398,7 +398,7 @@ public struct Deque: RandomAccessCollection, MutableCollection, RangeReplacea } // Internal state for the Deque -private struct DequeHeader { +public struct DequeHeader { var offset: Int var count: Int var capacity: Int @@ -455,7 +455,7 @@ private struct HeapObject { // storage and then using raw pointer offsets into self to access contents // (avoiding the ManagedBufferPointer accessors which are a performance problem // in Swift 3). -private final class DequeBuffer: ManagedBuffer { +public final class DequeBuffer: ManagedBuffer { #if true private static var headerOffset: Int { return Int(roundUp(UInt(MemoryLayout.size), toAlignment: MemoryLayout.alignment))