Xcode 5.1 - 没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = x86_64,VALID_ARCHS = i386) [英] Xcode 5.1 - No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386)

查看:228
本文介绍了Xcode 5.1 - 没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = x86_64,VALID_ARCHS = i386)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新到Xcode 5.1后,我无法再为64位模拟器构建项目,收到此错误:

After updating to Xcode 5.1, I can no longer build my project for the 64-bit simulator, receiving this error:

 No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386).

这些是我的目标构建设置:

These are my target build settings:

我尝试过更改构建活动架构为否,以及将i386添加到有效架构,遗憾的是两者都没有用。
感谢您的任何建议!

I tried changing "Build Active Architecture" to No, as well as adding "i386" to the "Valid Architectures", unfortunately neither worked. Thanks for any suggestions!

推荐答案

升级到XCode 5.1后,我收到了同样的错误消息。你在使用CocoaPods吗?如果是这样,这应解决问题:

I had the same error message after upgrading to XCode 5.1. Are you using CocoaPods? If so, this should fix the problem:


  1. 从Xcode左侧窗格中的工作区中删除Pods项目并关闭Xcode。

  2. 从命令行运行pod install以重新创建Pods项目。

  3. 重新打开Xcode并确保构建活动架构在Pods项目和您自己的项目的构建设置中,只有设置为No。

  4. 清理和构建。

  1. Delete the "Pods" project from the workspace in the left pane of Xcode and close Xcode.
  2. Run "pod install" from the command line to recreate the "Pods" project.
  3. Re-open Xcode and make sure "Build Active Architecture Only" is set to "No" in the build settings of both the "Pods" project and your own project.
  4. Clean and build.

这篇关于Xcode 5.1 - 没有要编译的体系结构(ONLY_ACTIVE_ARCH = YES,活动arch = x86_64,VALID_ARCHS = i386)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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