没有要编译的架构(ONLY_ACTIVE_ARCH = YES,活动arch = x86_64,VALID_ARCHS = armv6 armv7) [英] No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=armv6 armv7)

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

问题描述

我有一个带有两个目标的Xcode 3.2.5项目.第一个是普通的iOS目标.第二个针对Mac.这是项目说明:

I have an Xcode 3.2.5 project with two targets. The first is a vanilla iOS target. The second is targeted to the Mac. Here is the project description:

    92936A04148FEE15001C4EC6 /* Debug */ = {
        isa = XCBuildConfiguration;
        buildSettings = {
            ADDITIONAL_SDKS = "";
            ALWAYS_SEARCH_USER_PATHS = NO;
            ARCHS = "$(NATIVE_ARCH_ACTUAL)";
            COPY_PHASE_STRIP = NO;
            GCC_DYNAMIC_NO_PIC = NO;
            GCC_ENABLE_FIX_AND_CONTINUE = YES;
            GCC_OPTIMIZATION_LEVEL = 0;
            GCC_PRECOMPILE_PREFIX_HEADER = NO;
            GCC_PREFIX_HEADER = SleepSoundCommand_Prefix.pch;
            GENERATE_PKGINFO_FILE = NO;
            INFOPLIST_FILE = "SleepSoundCommand-Info.plist";
            INSTALL_PATH = "$(HOME)/Applications";
            ONLY_ACTIVE_ARCH = YES;
            OTHER_LDFLAGS = "";
            PREBINDING = NO;
            PRIVATE_HEADERS_FOLDER_PATH = "";
            PRODUCT_NAME = SleepSoundCommand;
            PUBLIC_HEADERS_FOLDER_PATH = "";
            SDKROOT = "";
            VALID_ARCHS = "i386 ppc ppc64 ppc7400 ppc970 x86_64";
        };
        name = Debug;
    };

问题是,当我尝试构建时,我会得到

Problem is, when I attempt to build I get

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

为什么要坚持使用"VALID_ARCHS = armv6 armv7"?

Why is it insisting that "VALID_ARCHS=armv6 armv7"?

推荐答案

为什么要坚持使用"VALID_ARCHS = armv6 armv7"?

Why is it insisting that "VALID_ARCHS=armv6 armv7"?

在Xcode项目中混合Mac和iOS目标一直很棘手.

Mixing Mac and iOS targets in an Xcode project has always been tricky.

我怀疑您的问题与SDK的使用有关.如果您使用iOS SDK并将iOS设备定位到某处,则需要arm*.确保SDK设置没有泄漏到Mac目标.

I suspect that your problem is related to the use of SDKs. If you are using an iOS SDK and targeting an iOS device somewhere, it'll require arm*. Make sure that the SDK settings aren't leaking through to the Mac target(s).

也-如果可能的话,您应该升级到最新的Xcode.自相对古老的3.2版本以来,大量的错误修复.

Also -- if at all possible, you should upgrade to the latest Xcode. Tons of bug fixes since the relatively ancient 3.2...

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

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