From 344f82d649772825cbb4bbd5709ffa21e2116d99 Mon Sep 17 00:00:00 2001 From: melekr Date: Tue, 7 Jan 2025 16:01:48 -0500 Subject: [PATCH 1/2] Explicitly expose NSManaged Objects to objc --- Sources/Features/Resources/Crash+CoreDataProperties.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/Features/Resources/Crash+CoreDataProperties.swift b/Sources/Features/Resources/Crash+CoreDataProperties.swift index d0155e37..407e9fc0 100644 --- a/Sources/Features/Resources/Crash+CoreDataProperties.swift +++ b/Sources/Features/Resources/Crash+CoreDataProperties.swift @@ -7,10 +7,15 @@ extension Crash { return NSFetchRequest(entityName: "Crash") } + @objc(attachmentPaths) @NSManaged public var attachmentPaths: [String]? + @objc(dateAdded) @NSManaged public var dateAdded: Date? + @objc(hashProperty) @NSManaged public var hashProperty: String? + @objc(reportData) @NSManaged public var reportData: Data? + @objc(retryCount) @NSManaged public var retryCount: Int64 } From 4438de89c626dd3b2f0cbc8bbffc62ec935d1753 Mon Sep 17 00:00:00 2001 From: melekr Date: Tue, 7 Jan 2025 16:03:58 -0500 Subject: [PATCH 2/2] Set xcdatamodel optional attributes & remove attachmentPaths customClassName --- .../Model.xcdatamodeld/Model.xcdatamodel/contents | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/Features/Resources/Model.xcdatamodeld/Model.xcdatamodel/contents b/Sources/Features/Resources/Model.xcdatamodeld/Model.xcdatamodel/contents index e06fa8ed..16e299cc 100644 --- a/Sources/Features/Resources/Model.xcdatamodeld/Model.xcdatamodel/contents +++ b/Sources/Features/Resources/Model.xcdatamodeld/Model.xcdatamodel/contents @@ -1,10 +1,10 @@ - + - - - - + + + + \ No newline at end of file