无法在Swift中集成parse.com

时间:2015-01-08 10:49:27

标签: ios swift parse-platform apple-push-notifications

我尝试将我的iOS应用与parse.com连接并推送通知。 A增加了框架。 因此,编译失败

Undefined symbols for architecture armv7:
  "_SLServiceTypeTwitter", referenced from:
      -[PF_Twitter getAccessTokenForReverseAuthAsync:localTwitterAccount:] in Parse(PF_Twitter.o)
      -[PF_Twitter getLocalTwitterAccountAsync] in Parse(PF_Twitter.o)
  "_OBJC_CLASS_$_SLComposeViewController", referenced from:
      objc-class-ref in Parse(PF_Twitter.o)
  "_OBJC_CLASS_$_SLRequest", referenced from:
      objc-class-ref in Parse(PF_Twitter.o)
  "_ACAccountTypeIdentifierTwitter", referenced from:
      -[PF_Twitter getLocalTwitterAccountAsync] in Parse(PF_Twitter.o)
  "_OBJC_CLASS_$_ACAccountStore", referenced from:
      objc-class-ref in Parse(PF_Twitter.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

有什么问题?

2 个答案:

答案 0 :(得分:1)

您可以从此图片中添加剩余的框架,它可以解决您的问题

enter image description here

答案 1 :(得分:1)

如果您想使用Twitter和Facebook登录,您还必须添加Social.frameworkAccounts.framework

添加这些框架,您应该很高兴,文档here中也提到了这一点。