框架错误

框架错误

问题描述:

我更新了解析框架到最新的版本在我的应用程序,现在我得到错误的TON在我的应用程序,主要是框架相关:框架错误

Undefined symbols for architecture x86_64: 
    "_OBJC_CLASS_$_FBSDKAccessToken", referenced from: 
     objc-class-ref in ParseFacebookUtilsV4(PFFacebookUtils.o) 
     objc-class-ref in ParseFacebookUtilsV4(PFFacebookAuthenticationProvider.o) 
    "_OBJC_CLASS_$_FBSDKApplicationDelegate", referenced from: 
     objc-class-ref in ParseFacebookUtilsV4(PFFacebookUtils.o) 
    "_OBJC_CLASS_$_FBSDKLoginManager", referenced from: 
     objc-class-ref in ParseFacebookUtilsV4(PFFacebookAuthenticationProvider.o) 
    "_OBJC_CLASS_$_FBSDKSettings", referenced from: 
     objc-class-ref in ParseFacebookUtilsV4(PFFacebookAuthenticationProvider.o) 
    "std::string::find_first_of(char const*, unsigned long, unsigned long) const", referenced from: 
     MacStringUtilsPFC_::IntegerValueAtIndex(std::string&, unsigned int) in ParseCrashReporting(string_utilities.o) 
    "std::string::find_first_not_of(char const*, unsigned long, unsigned long) const", referenced from: 
     MacStringUtilsPFC_::IntegerValueAtIndex(std::string&, unsigned int) in ParseCrashReporting(string_utilities.o) 
    "std::string::substr(unsigned long, unsigned long) const", referenced from: 
     MacStringUtilsPFC_::IntegerValueAtIndex(std::string&, unsigned int) in ParseCrashReporting(string_utilities.o) 
    "std::string::_Rep::_M_destroy(std::allocator<char> const&)", referenced from: 
     BreakpadPFC_::HandleUncaughtException(NSException*) in ParseCrashReporting(Breakpad.o) 
     BreakpadPFC_::Initialize(NSDictionary*) in ParseCrashReporting(Breakpad.o) 
     BreakpadPFC_::GenerateReport(NSDictionary*) in ParseCrashReporting(Breakpad.o) 

我已经证实,框架被添加,所以我不确定错误是由什么引起的。

+1

你有修好吗?我也遇到了这个问题。请帮我解决它谢谢 – 2015-05-19 17:23:45

不知道您是否在使用CocoaPods,但如果是这样,我今天在更新时遇到了同样的问题。从最新的更新中删除了'Facebook-iOS-SDK'和'ParseFacebookUtils'。不要深入了解错误,看起来好像链接器错误正在发生。在我Podfile,我只是说:

pod 'Facebook-iOS-SDK' 
pod 'ParseFacebookUtils' 

如果不使用的CocoaPods,它可以帮助确保这两个库是在源代码中,清洁和重建。

+0

我的问题是我有链接器标志-ObjC。一旦我删除它,它运行良好。 – user717452 2015-04-02 13:03:24

+1

“Facebook-iOS-SDK”和“ParseFacebookUtils”窗格现已弃用。请参阅Facebook iOS SDK v 4.1.0的升级指南https://developers.facebook.com/docs/ios/upgrading-4.x – neverbendeasy 2015-05-13 01:45:42

+0

@neverbendeasy是正确的。您可以将更新后的Pod转换为[ParseFacebookUtilsV4](http://cocoadocs.org/docsets/ParseFacebookUtilsV4/1.7.2.2/)和[FBSDKCoreKit](http://cocoadocs.org/docsets/FBSDKCoreKit/4.1.0/) – CoolestNerdIII 2015-05-14 04:30:42