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

查看:103
本文介绍了XCode-iOS:无法解决CocoaLibSpotify和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中加载符号.

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

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

请参阅:使用Parse iOS不包含Facebook SDK的SDK

在获取任务中发送可怜的Zack后

  • 删除-ObjC和-all_load
  • 添加-force_load< CocoaLibSpotify库名称>以仅加载CocoaLibSpotify.

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

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