XCode - iOS:无法解决 CocoaLib Spotify 和 Parse 框架之间的冲突 [英] XCode - iOS: Can't resolve conflict between CocoaLibSpotify and Parse framework

查看:26
本文介绍了XCode - iOS:无法解决 CocoaLib Spotify 和 Parse 框架之间的冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have an XCode project that uses the Parse API, but I'm now trying to integrate the cocoa touch wrapper for spotify. I'm getting an extremely frustrating linker error that I've literally been working at for two hours with no avail. Any help would be much appreciated! Here's the error. Thanks!

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)

推荐答案

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

我在这里猜测一下,但是你在为 CocoaLib Spotify 做 -all_load 吗?

I'm making a guess here, but are you doing -all_load for CocoaLibSpotify?

参见:使用 Parse iOSSDK 不包括 Facebook SDK

在送可怜的 Zack 去取任务之后

  • 删除 -ObjC 和 -all_load
  • 添加 -force_load 以仅加载 CocoaLibSpotify.

这篇关于XCode - iOS:无法解决 CocoaLib Spotify 和 Parse 框架之间的冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆