mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-12 04:10:36 +01:00
"<Class> does not conform to protocol 'ImportableUniqueObject'" when updating to CoreStore 3.1.0 #130
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wbuchner on GitHub (Mar 29, 2017).
Im updating from Swift 2 -> 3.1.0 and run across an issue I need some help with.
My class is below. It works beautifully in Swift 2.0 and I haven't had any issues. I am experiencing an issue with some warnings, and the Xcode telling me that I am not fully complying with the protocol. I can't see anything missing.
Can you please see what I cannot? I would appreciate it.
This is the warning I am getting

@JohnEstropia commented on GitHub (Mar 29, 2017):
@wbuchner Hi, starting CoreStore 3.0.3 the
ImportSourcedoes not need to beNSObject.You can use
typealias UniqueIDType = StringorNSStringdirectly.Also,
var uniqueIDValuenow has a default protocol implementation (you can remove it completely from your code) as long as you specify thevar uniqueIDKeyPathcorrectly.Please check ImportableUniqueObject.swift for the actual changes and ImportableAttributeType.swift for a list of supported
UniqueIDTypetypes.@wbuchner commented on GitHub (Mar 29, 2017):
Thank you John!