Parse App ParseFacebookUtils中的框架错误

时间:2015-04-01 15:57:13

标签: ios parse-platform parse-framework parsefacebookutils

我将Parse Framework更新到我的应用程序中的最新版本,现在我的应用程序中出现了一大堆错误,主要是与Framework相关:

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 个答案:

答案 0 :(得分:1)

不确定您是否使用CocoaPods,但如果是这样,我今天在更新时遇到了同样的问题。从它看来,“Facebook-iOS-SDK”和“ParseFacebookUtils”已从最新的更新中删除。如果没有深入研究您的错误,就会发现链接器错误正在发生。在我的Podfile中,我只是添加了:

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

如果不使用CocoaPods,可能有助于确保这两个库在您的源代码中,清理和重建。