{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-js/issues/361","repository_url":"https://api.github.com/repos/realm/realm-js","labels_url":"https://api.github.com/repos/realm/realm-js/issues/361/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-js/issues/361/comments","events_url":"https://api.github.com/repos/realm/realm-js/issues/361/events","html_url":"https://github.com/realm/realm-js/issues/361","id":144798426,"number":361,"title":"rnpm realm fails","user":{"login":"nranganathan1","id":6414677,"avatar_url":"https://avatars.githubusercontent.com/u/6414677?v=3","gravatar_id":"","url":"https://api.github.com/users/nranganathan1","html_url":"https://github.com/nranganathan1","followers_url":"https://api.github.com/users/nranganathan1/followers","following_url":"https://api.github.com/users/nranganathan1/following{/other_user}","gists_url":"https://api.github.com/users/nranganathan1/gists{/gist_id}","starred_url":"https://api.github.com/users/nranganathan1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nranganathan1/subscriptions","organizations_url":"https://api.github.com/users/nranganathan1/orgs","repos_url":"https://api.github.com/users/nranganathan1/repos","events_url":"https://api.github.com/users/nranganathan1/events{/privacy}","received_events_url":"https://api.github.com/users/nranganathan1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-03-31T06:00:24Z","updated_at":"2016-04-01T16:22:55Z","closed_at":null,"body":"I am trying to use realm within my react native project. \r\nI first installed realm: npm install --save realm\r\nThen linking to realm\r\n\r\n$ rnpm link realm\r\nrnpm-link info Linking realm android dependency \r\n$\r\n\r\nNothing happens after that message. I tried unlinking and it says its not linked yet.\r\n\r\n$ rnpm unlink realm\r\nrnpm-link info Unlinking realm android dependency \r\nrnpm-link info Android module realm is not linked yet \r\nrnpm-link info Unlinking realm ios dependency \r\nrnpm-link info iOS module realm is not linked yet \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/realm/realm-js/issues/comments/204458683","html_url":"https://github.com/realm/realm-js/issues/361#issuecomment-204458683","issue_url":"https://api.github.com/repos/realm/realm-js/issues/361","id":204458683,"user":{"login":"nranganathan1","id":6414677,"avatar_url":"https://avatars.githubusercontent.com/u/6414677?v=3","gravatar_id":"","url":"https://api.github.com/users/nranganathan1","html_url":"https://github.com/nranganathan1","followers_url":"https://api.github.com/users/nranganathan1/followers","following_url":"https://api.github.com/users/nranganathan1/following{/other_user}","gists_url":"https://api.github.com/users/nranganathan1/gists{/gist_id}","starred_url":"https://api.github.com/users/nranganathan1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nranganathan1/subscriptions","organizations_url":"https://api.github.com/users/nranganathan1/orgs","repos_url":"https://api.github.com/users/nranganathan1/repos","events_url":"https://api.github.com/users/nranganathan1/events{/privacy}","received_events_url":"https://api.github.com/users/nranganathan1/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T16:22:55Z","updated_at":"2016-04-01T16:22:55Z","body":"I fixed the issue. Here is the solution.\r\n\r\nIn Bolts project Targets:\r\nRemove the libz.tbd file from the Libraries and Frameworks area.\r\nEdit your build settings for Other Linker Flags add \"-lz\"\r\n\r\nIn my project, I have libc++.tbd, libz.tbd along with libRealmReact.a. I get the duplicate symbol error.\r\n\r\nduplicate symbol _OBJC_METACLASS_$_GCDWebServerErrorResponse in:\r\n    /Users/...ios/Build/Products/Debug-iphonesimulator/libBolts.a(GCDWebServerErrorResponse.o)\r\n    /Users/...ios/Build/Products/Debug-iphonesimulator/libRealmReact.a(GCDWebServerErrorResponse.o)\r\n\r\n\r\n\r\n\r\n"}}