phonegap-parse-plugin
phonegap-parse-plugin copied to clipboard
FacebookSDK / -ObjC flag issues
Looks like these can be resolved if building natively but not when running this plugin. Can you take a look please?
Undefined symbols for architecture i386: "_FBTokenInformationExpirationDateKey", referenced from: -[PFFacebookTokenCachingStrategy cacheTokenInformation:] in Parse(PFFacebookTokenCachingStrategy.o) -[PFFacebookTokenCachingStrategy expirationDate] in Parse(PFFacebookTokenCachingStrategy.o) -[PFFacebookTokenCachingStrategy setExpirationDate:] in Parse(PFFacebookTokenCachingStrategy.o) "_FBTokenInformationTokenKey", referenced from: -[PFFacebookTokenCachingStrategy accessToken] in Parse(PFFacebookTokenCachingStrategy.o) -[PFFacebookTokenCachingStrategy setAccessToken:] in Parse(PFFacebookTokenCachingStrategy.o) "_FBTokenInformationUserFBIDKey", referenced from: -[PFFacebookTokenCachingStrategy facebookId] in Parse(PFFacebookTokenCachingStrategy.o) -[PFFacebookTokenCachingStrategy setFacebookId:] in Parse(PFFacebookTokenCachingStrategy.o) "OBJC_CLASS$_FBAppCall", referenced from: objc-class-ref in Parse(PFFacebookAuthenticationProvider.o) "OBJC_CLASS$_FBRequest", referenced from: objc-class-ref in Parse(PFFacebookAuthenticationProvider.o) "OBJC_CLASS$_FBSession", referenced from: objc-class-ref in Parse(PFFacebookAuthenticationProvider.o) "OBJC_CLASS$_FBSessionTokenCachingStrategy", referenced from: OBJC_CLASS$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o) "OBJC_METACLASS$_FBSessionTokenCachingStrategy", referenced from: OBJC_METACLASS$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
+1
+1
+1
+1
+1
+1. Is there any workaround? I know next to nothing about ios dev
Yup, same problem here. Build fails everytime, now I need to dwelve into XCode imports.
I managed to solve it by downloading the facebook sdk and adding that to the project. I guess this replaces the internal dependency in the parse api sdk? Either way, it somehow works now! Apparently this is a known bug and fb is investigating. Something to do with a dependency of parse and both fb clashing.
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.
- Open the project in xcode
- Navigate to Build Settings
- Scroll down to the entry: Other Linker Flags
- Remove the -objc entry from Other Linker Flags
- You solve the problem by not adding extra junk to your project and removed an old compiler setting
@idlework that does solve the issue, but I am now unable to register the device using the initialize function. Did you manage to register an iOS device? If so, could you describe the procedure.
@Tiagojdferreira No problems here. My devices are registered correctly in Parse
The tutorial I used to setup Parse and my implementation gist.
Hop that helps... let me know.
@idlework thanks, but I eventually solved the problem.
@Tiagojdferreira Glad to hear you solved your problem. Maybe it is good to share what your problem was and how you solved it.
by removing the -ObjC your cordova on ready event will never fired. That's mean your cordova not work well.
I got this problem solved. https://github.com/ihsanberahim/phonegap-parse-plugin/blob/master/README.md
Just add the frameworks;
Twitter.framework
Social.framework
Accounts.framework
libsqlite3.dylib
libsqlite3.0.dylib
Additional Resources: http://blog.ihsanberahim.com/2015/05/install-parse-plugin-with-ionic.html
@ihsanberahim thank you very much
@ihsanberahim That problem doesn't occur in my project. Also when I create a simple project with only this framework the ready event is dispatched.