modo-studio / SugarRecord

CoreData/Realm sweet wrapper written in Swift
MIT License
2.11k stars 223 forks source link

Errors after sugarrecord submodule update #70

Closed ransomweaver closed 9 years ago

ransomweaver commented 9 years ago

I pulled sugarrecord submodule HEAD and changed the setup (added core and Realm folders directly to project) and now I get two new errors:

for this code: var dbCards: [Card]? = Card.by("cloudUUID", equalTo: "\"(cardUUID!)\"").find() as [Card]? I get "extra argument equalTo: in call"

and then for card.beginWriting() I get "Ambiguous use of beginWriting"

Card of course is a RLMObject

I don't seem to have any other Realm or SugarRecord errors

rdougan commented 9 years ago

I had the same thing after updating.

Make sure you remove all old import SRecord (or whatever it was) from your files, delete derived data and do a clean build.

The problem is that it is still using the old header files.

pepicrft commented 9 years ago

Could you try what @rdougan mentions @ransomweaver . In that case I will add that comment on the README/Wiki of the project.

ransomweaver commented 9 years ago

Aha! "import SRRealm" is not used now that I have included /Core and /Realm from SugarRecord in my project. Removing those (and cleaning the build presumably; I'd already done that) gets to a good build.

Thinking that I need an import is a bit of my Obj C showing still :)

pepicrft commented 9 years ago

Great, thanks @ransomweaver for checking. If you need any other thing do not hesitate to ask me!