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

Realm module not found when using a static library of Realm in my pod project in Objective-C #714

Closed
rockzzvn opened this issue Jan 26, 2016 · 4 comments

Comments

@rockzzvn
Copy link

Hi. I am currently building an application in iOS 8 and with XCode 7.
I dragged the Chart project to my project, linked Binary and tried to built. However, the following result occurred in Charts-Swift.h :
'Module 'Realm' not found'

I was using a static library of Realm in my pod project in Objective-C. I wonder if the Charts library can use that instead of the swift version of the Realm.
Thank you so much for your help!

@liuxuan30 liuxuan30 changed the title Realm module not found Realm module not found when using a static library of Realm in my pod project in Objective-C Jan 26, 2016
@danielgindi
Copy link
Collaborator

It actually does. You have to link the Realm library as well.
The Charts framework is not bundles with Realm framework, it only references it "optionally".

@danielgindi
Copy link
Collaborator

Charts is compiled against Realm and RealmSwift, not just RealmSwift. You can see that the demos are in ObjectiveC and still work with Realm.

@kbala-ami
Copy link

Hi @danielgindi

I am already doing with RealmSwift, I just found this wonderful chart framework, when I try to implement with ChartsRealm, seems its built by Objective-C Realm. Its use RLMResults instead of Results<T>

Cant use this with RealmSwift?

@danielgindi
Copy link
Collaborator

Well the Swift version of Realm still does not expose everything we need - but there's a PR in Realm made by the Realm team themselves - to change that. They really want you to have the easiest integration with Charts, and hopefully it will be done soon :-)

On a side note - you could pass a table name instead of a results array, and if your use case is simple enough it will do.

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