realm / realm-tasks

To Do app built with Realm, inspired by Clear for iOS
Other
369 stars 71 forks source link

Use of undeclared type 'User' #303

Closed Coderii closed 8 years ago

Coderii commented 8 years ago

when i run the project, it has 3 errors, Xcode log is “Use of undeclared type 'User'”,what can i do?

TimOliver commented 8 years ago

Hi @Coderii!

User is a new type of object in the Realm Mobile Platform. If your Xcode build isn't picking it up, then it sounds like the latest version of RealmSwift wasn't installed properly.

Where did you get your copy of the project from? Did you clone it, or open it from our website bundle? The website version should have all dependencies pre-added, but downloading a copy from here will require CocoaPods.

Thanks!

Coderii commented 8 years ago

I fork your project, clone it with GitHub Desktop, then I use 'Pod install' to update your project so that i have all dependencies pre-added, but it also has the same error.(sorry my English is poor)

1
Coderii commented 8 years ago
2
stel commented 8 years ago

@Coderii please try to run pod update. It looks like you have outdated local specs repo and also means that we need to specify RealmSwift version in Podfile explicitly :)

Coderii commented 8 years ago

thank you!