From 639574d8c211de0f52df397805e0aa8d2199c0f0 Mon Sep 17 00:00:00 2001 From: John Estropia Date: Tue, 17 Oct 2017 13:38:25 +0900 Subject: [PATCH 1/2] remove inline casts because optimized builds seem to trip on them --- Sources/CSListMonitor.swift | 1 - Sources/CSObjectMonitor.swift | 1 - Sources/DynamicObject.swift | 1 - Sources/QueryableAttributeType.swift | 6 ------ 4 files changed, 9 deletions(-) diff --git a/Sources/CSListMonitor.swift b/Sources/CSListMonitor.swift index 6e109d6..85c2e31 100644 --- a/Sources/CSListMonitor.swift +++ b/Sources/CSListMonitor.swift @@ -560,7 +560,6 @@ extension ListMonitor where ListMonitor.ObjectType: NSManagedObject { fileprivate func downcast() -> ListMonitor { - @inline(__always) func noWarnUnsafeBitCast(_ x: T, to type: U.Type) -> U { return unsafeBitCast(x, to: type) diff --git a/Sources/CSObjectMonitor.swift b/Sources/CSObjectMonitor.swift index 52e58dd..fc45bd7 100644 --- a/Sources/CSObjectMonitor.swift +++ b/Sources/CSObjectMonitor.swift @@ -152,7 +152,6 @@ extension ObjectMonitor where ObjectMonitor.ObjectType: NSManagedObject { fileprivate func downcast() -> ObjectMonitor { - @inline(__always) func noWarnUnsafeBitCast(_ x: T, to type: U.Type) -> U { return unsafeBitCast(x, to: type) diff --git a/Sources/DynamicObject.swift b/Sources/DynamicObject.swift index 9b1d7f5..cf148af 100644 --- a/Sources/DynamicObject.swift +++ b/Sources/DynamicObject.swift @@ -121,7 +121,6 @@ extension CoreStoreObject { return unsafeDowncast(coreStoreObject, to: self) } - @inline(__always) func forceTypeCast(_ type: DynamicObject.Type, to: T.Type) -> T.Type { return type as! T.Type diff --git a/Sources/QueryableAttributeType.swift b/Sources/QueryableAttributeType.swift index a7ae995..3aba294 100644 --- a/Sources/QueryableAttributeType.swift +++ b/Sources/QueryableAttributeType.swift @@ -350,7 +350,6 @@ extension NSData: QueryableAttributeType { @nonobjc @inline(__always) public class func cs_fromQueryableNativeType(_ value: QueryableNativeType) -> Self? { - @inline(__always) func forceCast(_ value: Any) -> T? { return value as? T @@ -380,7 +379,6 @@ extension NSDate: QueryableAttributeType { @nonobjc @inline(__always) public class func cs_fromQueryableNativeType(_ value: QueryableNativeType) -> Self? { - @inline(__always) func forceCast(_ value: Any) -> T? { return value as? T @@ -421,7 +419,6 @@ extension NSManagedObjectID: QueryableAttributeType { @nonobjc @inline(__always) public class func cs_fromQueryableNativeType(_ value: QueryableNativeType) -> Self? { - @inline(__always) func forceCast(_ value: Any) -> T? { return value as? T @@ -451,7 +448,6 @@ extension NSNull: QueryableAttributeType { @nonobjc @inline(__always) public class func cs_fromQueryableNativeType(_ value: QueryableNativeType) -> Self? { - @inline(__always) func forceCast(_ value: Any) -> T? { return value as? T @@ -481,7 +477,6 @@ extension NSNumber: QueryableAttributeType { @nonobjc @inline(__always) public class func cs_fromQueryableNativeType(_ value: QueryableNativeType) -> Self? { - @inline(__always) func forceCast(_ value: Any) -> T? { return value as? T @@ -511,7 +506,6 @@ extension NSString: QueryableAttributeType { @nonobjc @inline(__always) public class func cs_fromQueryableNativeType(_ value: QueryableNativeType) -> Self? { - @inline(__always) func forceCast(_ value: Any) -> T? { return value as? T From 588fa35c841c792ac865d6b022a178ac31d3470d Mon Sep 17 00:00:00 2001 From: John Estropia Date: Tue, 17 Oct 2017 13:39:57 +0900 Subject: [PATCH 2/2] version bump --- CoreStore.podspec | 2 +- Sources/Info.plist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CoreStore.podspec b/CoreStore.podspec index 5c3660e..785d052 100644 --- a/CoreStore.podspec +++ b/CoreStore.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "CoreStore" - s.version = "4.2.0" + s.version = "4.2.1" s.license = "MIT" s.summary = "Unleashing the real power of Core Data with the elegance and safety of Swift" s.homepage = "https://github.com/JohnEstropia/CoreStore" diff --git a/Sources/Info.plist b/Sources/Info.plist index b6ba904..1461558 100644 --- a/Sources/Info.plist +++ b/Sources/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 4.2.0 + 4.2.1 CFBundleSignature ???? CFBundleVersion