ParseUI iOS和CocoaPods的链接器错误 [英] Linker errors with ParseUI iOS and CocoaPods

查看:71
本文介绍了ParseUI iOS和CocoaPods的链接器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正尝试使用Parse构建应用程序,并想给ParseUI一炮而红.我使用Cocoa Pod导入了Parse的主要SDK,并且运行良好.当我决定添加ParseUI时,我遇到了问题.

I was attempting to build an app using Parse and wanted to give ParseUI a shot. I imported Parse's main SDK using Cocoa pods, and it worked fine. When I decided to add ParseUI, I ran into problems.

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_BFTaskCompletionSource", referenced from:
      objc-class-ref in PFImageView.o
  "_OBJC_CLASS_$_PFProduct", referenced from:
      objc-class-ref in PFProductTableViewController.o
     (maybe you meant: _OBJC_CLASS_$_PFProductTableViewController)
  "_OBJC_CLASS_$_PFPurchase", referenced from:
      objc-class-ref in PFProductTableViewController.o
     (maybe you meant: _OBJC_CLASS_$_PFPurchaseTableViewCell)
  "_OBJC_CLASS_$_PFQuery", referenced from:
      objc-class-ref in PFQueryTableViewController.o
     (maybe you meant: _OBJC_CLASS_$_PFQueryTableViewController)
  "_OBJC_CLASS_$_PFTwitterUtils", referenced from:
      objc-class-ref in PFLogInViewController.o
  "_OBJC_CLASS_$_PFUser", referenced from:
      objc-class-ref in PFLogInViewController.o
      objc-class-ref in PFSignUpViewController.o
  "_PFParseErrorDomain", referenced from:
      -[PFImageView loadInBackground:] in PFImageView.o
      ___32-[PFImageView loadInBackground:]_block_invoke30 in PFImageView.o
      -[PFSignUpViewController _signUpAction] in PFSignUpViewController.o
      -[PFSignUpViewController _signUpDidFailWithError:] in PFSignUpViewController.o
      -[PFImageView loadInBackground:] in PFImageView.o
      ___32-[PFImageView loadInBackground:]_block_invoke30 in PFImageView.o
      -[PFSignUpViewController _signUpAction] in PFSignUpViewController.o
      -[PFSignUpViewController _signUpDidFailWithError:] in PFSignUpViewController.o
  "_kPFErrorCacheMiss", referenced from:
      ___48-[PFQueryTableViewController loadObjects:clear:]_block_invoke in PFQueryTableViewController.o
  "_kPFErrorInvalidEmailAddress", referenced from:
      -[PFSignUpViewController _signUpDidFailWithError:] in PFSignUpViewController.o
  "_kPFErrorInvalidImageData", referenced from:
      ___32-[PFImageView loadInBackground:]_block_invoke30 in PFImageView.o
  "_kPFErrorUnsavedFile", referenced from:
      -[PFImageView loadInBackground:] in PFImageView.o
  "_kPFErrorUserEmailMissing", referenced from:
      -[PFSignUpViewController _signUpDidFailWithError:] in PFSignUpViewController.o
  "_kPFErrorUserEmailTaken", referenced from:
      -[PFSignUpViewController _signUpDidFailWithError:] in PFSignUpViewController.o
  "_kPFErrorUserPasswordMissing", referenced from:
      -[PFSignUpViewController _signUpDidFailWithError:] in PFSignUpViewController.o
  "_kPFErrorUsernameMissing", referenced from:
      -[PFSignUpViewController _signUpDidFailWithError:] in PFSignUpViewController.o
  "_kPFErrorUsernameTaken", referenced from:
      -[PFSignUpViewController _signUpDidFailWithError:] in PFSignUpViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我尝试了诸如强制将Parse.framework包含在内以进行ParseUI链接的操作,但它似乎没有帮助.我不是cocoapods或XCode的专家,所以我不知道我是否缺少明显的东西.

I've attempted things like forcing the inclusion of the Parse.framework for the linking of ParseUI, but it didnt seem to help. I'm not an expert with cocoapods or with XCode, so I don't know if there's something obvious I'm missing.

我尝试过可可足类0.35和0.36-beta-1.这是一个快速的项目,所以我不知道这是否可能导致某些问题.

I've tried cocoapods 0.35 and 0.36-beta-1. This is a swift project, so I don't know if that could be causing some of the problems.

推荐答案

您需要使用Bolts.frameworks框架.该框架是Parse SDK的一部分.另一件事是,在最新版本的Parse SDK(现在为v1.6.2)中,您将必须导入Parse/Parse.h,ParseUI/ParseUI.h或两者,这取决于所使用的对象. 告诉我是否需要有关安装de Bolts框架的更多信息! :)

You need to use the framework Bolts.frameworks. This framework is part of the Parse SDK. Another thing is that with the last version of Parse SDK (v1.6.2 right now) you'll have to import Parse/Parse.h, ParseUI/ParseUI.h or both, depending on which objects you are using. Tell me if you need more information about installing de Bolts framework! :)

这篇关于ParseUI iOS和CocoaPods的链接器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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