{"action":"created","issue":{"url":"https://api.github.com/repos/avivais/phonegap-parse-plugin/issues/15","labels_url":"https://api.github.com/repos/avivais/phonegap-parse-plugin/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/avivais/phonegap-parse-plugin/issues/15/comments","events_url":"https://api.github.com/repos/avivais/phonegap-parse-plugin/issues/15/events","html_url":"https://github.com/avivais/phonegap-parse-plugin/issues/15","id":39189441,"number":15,"title":"FacebookSDK / -ObjC flag issues","user":{"login":"idiron","id":1035590,"avatar_url":"https://avatars.githubusercontent.com/u/1035590?v=3","gravatar_id":"","url":"https://api.github.com/users/idiron","html_url":"https://github.com/idiron","followers_url":"https://api.github.com/users/idiron/followers","following_url":"https://api.github.com/users/idiron/following{/other_user}","gists_url":"https://api.github.com/users/idiron/gists{/gist_id}","starred_url":"https://api.github.com/users/idiron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idiron/subscriptions","organizations_url":"https://api.github.com/users/idiron/orgs","repos_url":"https://api.github.com/users/idiron/repos","events_url":"https://api.github.com/users/idiron/events{/privacy}","received_events_url":"https://api.github.com/users/idiron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-07-31T12:30:45Z","updated_at":"2015-04-03T15:10:13Z","closed_at":null,"body":"Looks like these can be resolved if building natively but not when running this plugin. Can you take a look please?\r\n\r\n\r\n\r\nUndefined symbols for architecture i386:\r\n  \"_FBTokenInformationExpirationDateKey\", referenced from:\r\n      -[PFFacebookTokenCachingStrategy cacheTokenInformation:] in Parse(PFFacebookTokenCachingStrategy.o)\r\n      -[PFFacebookTokenCachingStrategy expirationDate] in Parse(PFFacebookTokenCachingStrategy.o)\r\n      -[PFFacebookTokenCachingStrategy setExpirationDate:] in Parse(PFFacebookTokenCachingStrategy.o)\r\n  \"_FBTokenInformationTokenKey\", referenced from:\r\n      -[PFFacebookTokenCachingStrategy accessToken] in Parse(PFFacebookTokenCachingStrategy.o)\r\n      -[PFFacebookTokenCachingStrategy setAccessToken:] in Parse(PFFacebookTokenCachingStrategy.o)\r\n  \"_FBTokenInformationUserFBIDKey\", referenced from:\r\n      -[PFFacebookTokenCachingStrategy facebookId] in Parse(PFFacebookTokenCachingStrategy.o)\r\n      -[PFFacebookTokenCachingStrategy setFacebookId:] in Parse(PFFacebookTokenCachingStrategy.o)\r\n  \"_OBJC_CLASS_$_FBAppCall\", referenced from:\r\n      objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)\r\n  \"_OBJC_CLASS_$_FBRequest\", referenced from:\r\n      objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)\r\n  \"_OBJC_CLASS_$_FBSession\", referenced from:\r\n      objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)\r\n  \"_OBJC_CLASS_$_FBSessionTokenCachingStrategy\", referenced from:\r\n      _OBJC_CLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)\r\n  \"_OBJC_METACLASS_$_FBSessionTokenCachingStrategy\", referenced from:\r\n      _OBJC_METACLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)"},"comment":{"url":"https://api.github.com/repos/avivais/phonegap-parse-plugin/issues/comments/89315511","html_url":"https://github.com/avivais/phonegap-parse-plugin/issues/15#issuecomment-89315511","issue_url":"https://api.github.com/repos/avivais/phonegap-parse-plugin/issues/15","id":89315511,"user":{"login":"idlework","id":1837372,"avatar_url":"https://avatars.githubusercontent.com/u/1837372?v=3","gravatar_id":"","url":"https://api.github.com/users/idlework","html_url":"https://github.com/idlework","followers_url":"https://api.github.com/users/idlework/followers","following_url":"https://api.github.com/users/idlework/following{/other_user}","gists_url":"https://api.github.com/users/idlework/gists{/gist_id}","starred_url":"https://api.github.com/users/idlework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idlework/subscriptions","organizations_url":"https://api.github.com/users/idlework/orgs","repos_url":"https://api.github.com/users/idlework/repos","events_url":"https://api.github.com/users/idlework/events{/privacy}","received_events_url":"https://api.github.com/users/idlework/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T15:10:13Z","updated_at":"2015-04-03T15:10:13Z","body":"To solve this problem is to remove the -objc compiler flag. This way you don't have to add the Facebook framework to solve this bug.\r\n\r\n1. Open the project in xcode\r\n2. Navigate to Build Settings\r\n3. Scroll down to the entry: Other Linker Flags\r\n4. Remove the -objc entry from Other Linker Flags\r\n5. You solve the problem by not adding extra junk to your project and removed an old compiler setting"}}