iPhone 编译器失败:没有要编译的架构 [英] iPhone Compiler Fails: No architectures to compile for

查看:26
本文介绍了iPhone 编译器失败:没有要编译的架构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实施 Cocoa 绘图框架(Alpha 版本 0.1) 在我的 iPhone 应用中.

I'm trying to implement the Cocoa plotting framework (Alpha Release 0.1) in my iPhone app.

我想我会先尝试运行他们提供的示例.我试图打开并编译位于 /Source/examples/CPTestApp-iPhone/ 中的项目.

I figured I'd first try to run the sample they provide. I attempted to open and compile the project located in /Source/examples/CPTestApp-iPhone/.

它说我的基础 SDK 马上就丢失了,所以我编辑了项目设置和活动目标以使用 iOS4 SDK,我之前为示例做过这些并且有工作.我不知道该怎么做.我正在运行一款最新的 Unibody Macbook,版本为 10.6.4.

It says my base SDK was missing right off of the bat, so I edited the Project settings and the Active Target to use the iOS4 SDK, which I've done before for samples and had work. I'm not sure what to do. I'm running one of the newest Unibody Macbooks, with 10.6.4.

这里是完整的错误:

// - start - //

Check dependencies

[BEROR]No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=i386, VALID_ARCHS=armv6 armv7).

// - end - //

想法?

推荐答案

试试这个:

项目构建设置:

  • 架构:标准 (armv6 armv7)
  • 基础 SDK:最新的 iOS 构建活动
  • 仅限架构:检查有效
  • 架构:armv6 armv7

删除架构构建设置中的任何子设置.

Delete any sub settings in the Architecture build setting.

目标构建设置:

  • 与项目设置相同.

框架将 SystemConfiguration.framework 添加到您的项目中.- 不知道为什么这会产生任何影响.

Frameworks Add the SystemConfiguration.framework to your project. - Not sure why this had any impact.

清理所有目标.为模拟器构建.

Clean all targets. Build for the simulator.

对此的详细解释可以在我们的博客中找到:http://longweekendmobile.com/2010/06/15/fixing-the-missing-required-architecture-arm-in-file-when-developing-for-ipad/

The long explanation for this can be found on our blog: http://longweekendmobile.com/2010/06/15/fixing-the-missing-required-architecture-arm-in-file-when-developing-for-ipad/

这篇关于iPhone 编译器失败:没有要编译的架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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