UI7Kit icon indicating copy to clipboard operation
UI7Kit copied to clipboard

Problem to compile together with the Parse sdk ?

Open bagusflyer opened this issue 10 years ago • 2 comments

I got the following error:

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)

Base on the parse.com forum the issue is -ObjC flag. I found the only library using the -ObjC flag is UIKit7 library. Is there a way to bypass this problem ? Thanks

bagusflyer avatar Jun 03 '14 03:06 bagusflyer

See the error message. Because FBTokenInformationExpirationDateKey is not a symbol in UI7Kit, I can't fix it form UI7Kit. I am not sure where it is, but you may miss some library from linking.

youknowone avatar Jun 03 '14 04:06 youknowone

Hi , I am facing the same problem , it seems like the issue is similar with using RESTKit , as explain from this post https://www.parse.com/questions/using-the-parse-ios-sdk-without-including-the-facebook-sdk

Parse recommend to use this -force_load to resolve RESTKIT issue , i wonder can this help to solve the issue with UI7Kit here. If this can , Can help to recommend whats the path should be which by referring to this link http://stackoverflow.com/questions/11254269/using-the-force-load-linker-flag-with-restkit-ios , it should be something like this (-force_load facebook-ios-sdk/lib/facebook-ios-sdk/libfacebook_ios_sdk.a -force_load $(BUILT_PRODUCTS_DIR)/libRestKit.a) ?

Thanks.

thejaff avatar Jun 15 '14 08:06 thejaff