我有一个使用Parse API的XCode项目,但是我现在正在尝试集成可可触摸包装器进行Spotify。我收到了一个极其令人沮丧的链接器错误,我一直在工作两个小时,但无济于事。任何帮助将非常感激!这是错误。谢谢!

Undefined symbols for architecture x86_64:
  "_FBTokenInformationExpirationDateKey", referenced from:
      -[PFFacebookTokenCachingStrategy cacheTokenInformation:] in Parse(PFFacebookTokenCachingStrategy.o)
      -[PFFacebookTokenCachingStrategy expirationDate] in Parse(PFFacebookTokenCachingStrategy.o)
      -[PFFacebookTokenCachingStrategy setExpirationDate:] in Parse(PFFacebookTokenCachingStrategy.o)
  "_FBTokenInformationTokenKey", referenced from:
      -[PFFacebookTokenCachingStrategy accessToken] in Parse(PFFacebookTokenCachingStrategy.o)
      -[PFFacebookTokenCachingStrategy setAccessToken:] in Parse(PFFacebookTokenCachingStrategy.o)
  "_FBTokenInformationUserFBIDKey", referenced from:
      -[PFFacebookTokenCachingStrategy facebookId] in Parse(PFFacebookTokenCachingStrategy.o)
      -[PFFacebookTokenCachingStrategy setFacebookId:] in Parse(PFFacebookTokenCachingStrategy.o)
  "_OBJC_CLASS_$_FBAppCall", referenced from:
      objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
  "_OBJC_CLASS_$_FBRequest", referenced from:
      objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
  "_OBJC_CLASS_$_FBSession", referenced from:
      objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
  "_OBJC_CLASS_$_FBSessionTokenCachingStrategy", referenced from:
      _OBJC_CLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
  "_OBJC_METACLASS_$_FBSessionTokenCachingStrategy", referenced from:
      _OBJC_METACLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

  • Parse链接到Facebook SDK。
  • 您正在使用的项目正在尝试构建x86_64(模拟器)。
  • 链接器正在尝试从使用Facebook SDK的Parse加载符号。

  • 我在这里猜测,但是您在为CocoaLibSpotify做-all_load吗?

    另请:Using the Parse iOS SDK without including the Facebook SDK

    在提取任务中发送可怜的扎克之后
  • 删除-ObjC和-all_load
  • 添加-force_load 以仅加载CocoaLibSpotify。
  • 关于ios - XCode-iOS:无法解决CocoaLibSpotify和Parse框架之间的冲突,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20928940/

    10-14 16:51