From 9239370793cbd068242a1350564292324f513bc2 Mon Sep 17 00:00:00 2001 From: John Estropia Date: Tue, 29 Jan 2019 14:15:01 +0900 Subject: [PATCH] Added reference comment explaining crashes on A12 devices #291 --- Sources/CoreStoreSchema.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Sources/CoreStoreSchema.swift b/Sources/CoreStoreSchema.swift index 0a4b5ba..81f9db2 100644 --- a/Sources/CoreStoreSchema.swift +++ b/Sources/CoreStoreSchema.swift @@ -525,7 +525,14 @@ public final class CoreStoreSchema: DynamicSchema { return CoreStoreManagedObject.self } let managedObjectClass: AnyClass = className.withCString { - + + // Xcode 10.1+ users: You may find this comment due to a crash while debugging on an iPhone XR device (or any A12 device). + // This is a known issue that should not occur in archived builds, as the AppStore strips away arm64e build architectures from the binary. So while it crashes on DEBUG, it shouldn't be an issue for live users. + // In the meantime, please submit a bug report to Apple and refer to similar discussions here: + // - https://github.com/realm/realm-cocoa/issues/6013 + // - https://github.com/wordpress-mobile/WordPress-iOS/pull/10400 + // - https://github.com/JohnEstropia/CoreStore/issues/291 + // If you wish to debug with A12 devices, please use Xcode 10.0 for now. return objc_allocateClassPair(superClass, $0, 0)! } defer {