youknowone / UI7Kit

Backport flat-style UIKit from iOS7 to iOS5+
Other
1.67k stars 199 forks source link

Problem to compile together with the Parse sdk ? #151

Open bagusflyer opened 10 years ago

bagusflyer commented 10 years ago

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

youknowone commented 10 years ago

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.

thejaff commented 10 years ago

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.