Apple Mach-O链接器错误 - armv7

时间:2015-05-27 14:23:53

标签: ios xcode cocoapods

我正在开发Xcode 6.3.1中的一个项目,并希望在iTunes连接上提交构建。看到here中的步骤,它说包含arm64的应用包含armv7 architecture'。从here对此问题的进一步研究使我将Build Active Architecture设置为No

现在,我的项目有6个构建错误:

Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_AFJSONRequestSerializer", referenced from:
  objc-class-ref in AddViewController.o
"_OBJC_CLASS_$_AFHTTPRequestOperationManager", referenced from:
  objc-class-ref in AddViewController.o
"_OBJC_CLASS_$_FAKFontAwesome", referenced from:
  objc-class-ref in MyProfileViewController.o
  objc-class-ref in LikeTableViewCell.o
  objc-class-ref in DetailsViewController.o
  objc-class-ref in UserProfileViewController.o
  objc-class-ref in CTableViewCell.o
  objc-class-ref in TakeTheCViewController.o
  objc-class-ref in NTableViewCell.o
  ...
"_OBJC_CLASS_$_JGProgressHUD", referenced from:
  objc-class-ref in BaseViewController.o
"_OBJC_CLASS_$_DTAlertView", referenced from:
  objc-class-ref in MyProfileViewController.o
  objc-class-ref in CDetailsViewController.o
  objc-class-ref in CSolutionTableViewCell.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我尝试在我的pods文件中更新所有这些框架,但错误仍然存​​在。试图通过将文件拖到我的项目中将它们添加到我的项目中(由于我通过从Pods文件中删除框架来设法解决的双重性而导致更多错误)但是我将不得不更改所有导入语句(如果我是对的。

对此有何帮助?请原谅我,如果我听起来很愚蠢,还是iOS开发的新手。

1 个答案:

答案 0 :(得分:0)

想出一条出路..我没有将Build Active Architecture设置为No,而是将所有设备从机器中移除,然后归档构建。它顺利进行,没有任何错误。但是,如果有人能解决上述问题,请发布,以便其他人知道。