2015-04-01 154 views
1

我更新瞭解析框架到最新的版本在我的應用程序,現在我得到錯誤的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

回答

1

不知道您是否在使用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