Parse for iOS:尝试运行应用程序时出错 [英] Parse for iOS: Errors when trying to run the app

查看:107
本文介绍了Parse for iOS:尝试运行应用程序时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Parse SDK,我遵循了快速指南。当我尝试运行时,我得到了这8个错误。任何想法为什么?它看起来与我不使用的Parse的Facebook部分有关。

I've been working with the Parse SDK and I followed the quickstep guide. When I try to run, I get these 8 errors. Any ideas as to why? It looks like something to do with the Facebook part of Parse which I'm not using.

 Undefined symbols for architecture armv7:
"_FBTokenInformationTokenKey", referenced from:
  -[PFFacebookTokenCachingStrategy accessToken] in Parse(PFFacebookTokenCachingStrategy.o)
  -[PFFacebookTokenCachingStrategy setAccessToken:] in Parse(PFFacebookTokenCachingStrategy.o)
 "_FBTokenInformationExpirationDateKey", referenced from:
  -[PFFacebookTokenCachingStrategy cacheTokenInformation:] in     Parse(PFFacebookTokenCachingStrategy.o)
  -[PFFacebookTokenCachingStrategy expirationDate] in Parse(PFFacebookTokenCachingStrategy.o)
  -[PFFacebookTokenCachingStrategy setExpirationDate:] in Parse(PFFacebookTokenCachingStrategy.o)
 "_OBJC_METACLASS_$_FBSessionTokenCachingStrategy", referenced from:
  _OBJC_METACLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
"_OBJC_CLASS_$_FBSessionTokenCachingStrategy", referenced from:
  _OBJC_CLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
"_FBTokenInformationUserFBIDKey", referenced from:
  -[PFFacebookTokenCachingStrategy facebookId] in Parse(PFFacebookTokenCachingStrategy.o)
  -[PFFacebookTokenCachingStrategy setFacebookId:] in Parse(PFFacebookTokenCachingStrategy.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)
 ld: symbol(s) not found for architecture armv7
 clang: error: linker command failed with exit code 1 (use -v to see invocation)


推荐答案

这是一种与Parse iOS 1.1.33版本相关的错误,因为多人看到了相同的错误 - 包括我自己。

This is some sort of bug associated with the Parse iOS 1.1.33 release as multiple people are seeing the same errors- myself included.

有几种解决方法 -

There are a couple of workarounds-

如果您没有使用需要-ObjC链接器标志的库,则可以从项目中删除-ObjC:

If you're not using a library which requires the -ObjC linker flag, you can remove -ObjC from your project:

构建设置>其他链接器标志>删除-ObjC

Build Settings > Other Linker Flags > remove -ObjC

或者如果您使用的是需要该标志的库,则可以添加Facebook SDK。

or if you are using a library which requires that flag, you can add the Facebook SDK.

这两个选项都可以消除错误。希望他们解决这个问题,因为我不需要在我的应用程序中使用Facebook SDK。

Both options will eliminate the errors. Hopefully they fix this as I have no need for the Facebook SDK in my app.

按照此处的讨论:

https://parse.com/questions/cocoapods-incompatibility

这篇关于Parse for iOS:尝试运行应用程序时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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