Impossible to compile CoreStore 4.0 in xcode 9 #174

Closed
opened 2025-12-29 15:26:14 +01:00 by adam · 5 comments
Owner

Originally created by @igorkurilenko on GitHub (Sep 25, 2017).

Originally created by @igorkurilenko on GitHub (Sep 25, 2017).
adam closed this issue 2025-12-29 15:26:14 +01:00
Author
Owner

@JohnEstropia commented on GitHub (Sep 25, 2017):

Hi, I'm still finalizing the documentations for the prototype/Swift_3_2 and prototype/Swift_4_0 branches before releasing them, so in the meantime please use those branches for Xcode 9.

@JohnEstropia commented on GitHub (Sep 25, 2017): Hi, I'm still finalizing the documentations for the `prototype/Swift_3_2` and `prototype/Swift_4_0` branches before releasing them, so in the meantime please use those branches for Xcode 9.
Author
Owner

@jamesbebbington commented on GitHub (Sep 29, 2017):

Is the compilation failure in v4.1.3 a bunch of these type errors?

First type 'O.QueryableNativeType' in conformance requirement does not refer to a generic parameter or associated type

Using 0aa8c03424 on prototype/Swift_3_2 I'm getting one compilation failure Generic parameter 'U' could not be inferred on the addObserver call in my UITableViewCell property:

var reply: Reply? {
    didSet {
        guard let reply = reply else { return }

        if let attachment = reply.attachment {
            self.attachmentMonitor = CoreStore.monitorObject(attachment)
            self.attachmentMonitor!.addObserver(self)
        } else {
            self.attachmentMonitor = nil
        }

        updateSubviews(with: reply)
   }
}

@JohnEstropia is there a specific branch/commit I should be using to build our app in Swift 3.2 in Xcode 9?

@jamesbebbington commented on GitHub (Sep 29, 2017): Is the compilation failure in `v4.1.3` a bunch of these type errors? First type 'O.QueryableNativeType' in conformance requirement does not refer to a generic parameter or associated type Using 0aa8c03424d1304e250ac41fce3003252a12a74a on `prototype/Swift_3_2` I'm getting one compilation failure `Generic parameter 'U' could not be inferred` on the `addObserver` call in my `UITableViewCell` property: ```swift var reply: Reply? { didSet { guard let reply = reply else { return } if let attachment = reply.attachment { self.attachmentMonitor = CoreStore.monitorObject(attachment) self.attachmentMonitor!.addObserver(self) } else { self.attachmentMonitor = nil } updateSubviews(with: reply) } } ``` @JohnEstropia is there a specific branch/commit I should be using to build our app in Swift 3.2 in Xcode 9?
Author
Owner

@MarijaS1 commented on GitHub (Oct 6, 2017):

@JohnEstropia when this issue will be resolved? I'm developing an app and my entire Core Data logic depends on your library :)

@MarijaS1 commented on GitHub (Oct 6, 2017): @JohnEstropia when this issue will be resolved? I'm developing an app and my entire Core Data logic depends on your library :)
Author
Owner

@jamesbebbington commented on GitHub (Oct 9, 2017):

Scratch that issue above that I was having with Generic parameter 'U' could not be inferred; the bug was in my code.

@jamesbebbington commented on GitHub (Oct 9, 2017): Scratch that issue above that I was having with `Generic parameter 'U' could not be inferred`; the bug was in my code.
Author
Owner

@JohnEstropia commented on GitHub (Oct 10, 2017):

@MarijaS1 Hi, if you are still having issues please check the solution here: https://github.com/JohnEstropia/CoreStore/issues/199

These compiler errors means that the CoreStore branch you are using doesn't match the Swift version of your app, specifically the Cocoapods swift version setting.

I'm closing this issue, but feel free to send a message if the problem persists.

@JohnEstropia commented on GitHub (Oct 10, 2017): @MarijaS1 Hi, if you are still having issues please check the solution here: https://github.com/JohnEstropia/CoreStore/issues/199 These compiler errors means that the CoreStore branch you are using doesn't match the Swift version of your app, specifically the Cocoapods swift version setting. I'm closing this issue, but feel free to send a message if the problem persists.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore#174