简体   繁体   English

xcode 6:找不到体系结构armv7的符号

[英]xcode 6:symbol(s) not found for architecture armv7

Building my Ionic+Parse Project in Xcode v 6.2 gives me this build error: 在Xcode v 6.2中构建我的Ionic + Parse项目给了我这个构建错误:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_PFPush", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_PFInstallation", referenced from:
      objc-class-ref in AppDelegate.o
  "_OBJC_CLASS_$_Parse", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

The frameworks that I have added are 我添加的框架是

在此处输入图片说明

And the build settings look like this 生成设置如下所示 在此处输入图片说明

Any help would be really appreciate 任何帮助将不胜感激

PS: Trying to run application on an iPad 2 PS:尝试在iPad 2上运行应用程序

Update The problem is with adding Parse.Framework to existing xCode project. 更新问题在于将Parse.Framework添加到现有的Parse.Framework项目中。 - I tried removing the re adding the Parse.Framework (cleaned and built) from project but then it increases build errors. -我尝试从项目中删除重新添加Parse.Framework (已清理和构建)的操作,但是这样会增加构建错误。

Finally after hours of struggle. 终于经过数小时的奋斗。

  • Clear the /platforms folder 清除/platforms文件夹
  • run ionic platform add ios 运行ionic platform add ios
  • Open /platform/ios Xcode Project. 打开/platform/ios Xcode项目。
  • You should see build errors (about 8 or 10) 您应该看到构建错误(大约8或10)
  • Go to Target> Build settings>Other Linker Flags 转到目标>构建设置>其他链接器标志
  • Remove the -ObjC from the list if present. 从列表中删除-ObjC(如果存在)。
  • Clean and build you're good to go. 清理并打造自己就很好了。 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM