Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors after sugarrecord submodule update #70

Closed
ransomweaver opened this issue Dec 10, 2014 · 4 comments
Closed

Errors after sugarrecord submodule update #70

ransomweaver opened this issue Dec 10, 2014 · 4 comments
Assignees
Milestone

Comments

@ransomweaver
Copy link

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
Copy link
Contributor

rdougan commented Dec 10, 2014

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
Copy link

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

@pepicrft pepicrft self-assigned this Dec 10, 2014
@pepicrft pepicrft added this to the 1.0.3 milestone Dec 10, 2014
@ransomweaver
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants