{"action":"opened","issue":{"url":"https://api.github.com/repos/magicalpanda/MagicalRecord/issues/1062","labels_url":"https://api.github.com/repos/magicalpanda/MagicalRecord/issues/1062/labels{/name}","comments_url":"https://api.github.com/repos/magicalpanda/MagicalRecord/issues/1062/comments","events_url":"https://api.github.com/repos/magicalpanda/MagicalRecord/issues/1062/events","html_url":"https://github.com/magicalpanda/MagicalRecord/issues/1062","id":101283986,"number":1062,"title":"Use MagicalRecord in Swift project","user":{"login":"Shogun147","id":574469,"avatar_url":"https://avatars.githubusercontent.com/u/574469?v=3","gravatar_id":"","url":"https://api.github.com/users/Shogun147","html_url":"https://github.com/Shogun147","followers_url":"https://api.github.com/users/Shogun147/followers","following_url":"https://api.github.com/users/Shogun147/following{/other_user}","gists_url":"https://api.github.com/users/Shogun147/gists{/gist_id}","starred_url":"https://api.github.com/users/Shogun147/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shogun147/subscriptions","organizations_url":"https://api.github.com/users/Shogun147/orgs","repos_url":"https://api.github.com/users/Shogun147/repos","events_url":"https://api.github.com/users/Shogun147/events{/privacy}","received_events_url":"https://api.github.com/users/Shogun147/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-16T17:47:19Z","updated_at":"2015-08-16T17:47:19Z","closed_at":null,"body":"Hi there,\r\n\r\nI'm trying for some time to get MagicalRecord use into a new Swift project, but didn't succeed to get it working.\r\n\r\nMy followed steps based on different tutorials:\r\n1. I've created new Swift project (without CoreData enabled).\r\n2. Installed MagicalRecord via cocoapods: pod \"MagicalRecord/Shorthand\"\r\n3. Tried to setup pch file with config (not very clear where this file should be and setup in build settings PrefixHeader):\r\n#ifdef __OBJC__\r\n    #define MR_SHORTHAND\r\n    #import <MagicalRecord/CoreData+MagicalRecord.h>\r\n#endif\r\n4. Created an Entity in DataModel and generated NSManagedObject subclass.\r\n\r\nThen when i'm trying to use MR methods i'm getting error. For example 'does not have a member named createEntity'...\r\n\r\nCan someone please help with getting this to work?\r\nMaybe a step by step description will be helpful also for other newbies who try to use it in Swift project.\r\n\r\nAny help will be appreciated.\r\n\r\nThanks!"}}