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

来源:互联网 发布:网络预警机制 编辑:程序博客网 时间:2024/06/05 20:15
89 down vote accepted

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

  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.


来自:http://stackoverflow.com/questions/22328882/xcode-5-1-no-architectures-to-compile-for-only-active-arch-yes-active-arch-x

0 0
原创粉丝点击