Xcode 2.3 changes $ARCHS=ppc i386 to $NATIVE_ARCH?
Xcode 2.3 changes $ARCHS=ppc i386 to $NATIVE_ARCH?
- Subject: Xcode 2.3 changes $ARCHS=ppc i386 to $NATIVE_ARCH?
- From: Rua Haszard Morris <email@hidden>
- Date: Fri, 26 May 2006 12:34:45 +1200
I'm opening all my Xcode projects under 2.3, and notice that they all
now have "$NATIVE_ARCH" for the Release build style. They all used to
be (and still are in the pbxproj files) "ppc i386".
I thought perhaps the build settings interface was displaying them
incorrectly, but its affecting the builds: my main app I have 'fixed'
so it builds "i386 ppc" again, and none of the libraries will link
because the the libraries are only targeting i386.
This is curious - has anyone else seen it?
Resetting the ARCHS value to "ppc i386" and resaving seems to fix the
problem; I notice that this results in another entry
ARCHS = (
ppc,
i386,
);
in the pbxproj file, in another isa = XCBuildConfiguration; section,
just below where the previous ARCHS value (with ppc i386) was/is
saved. (The only other difference after resaving was the removal of
the buildstyle stuff.)
For example (see the "this is new" comments below):
/* Begin XCBuildConfiguration section */
1DEB920208733DBB0010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_FIX_AND_CONTINUE = YES;
GCC_MODEL_TUNING = G5;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = ../../Common/PrefixFiles/
ADICarbonDebug_Prefix.h;
INSTALL_PATH = /usr/local/lib;
PRODUCT_NAME = p2cLibs;
ZERO_LINK = YES;
};
name = Debug;
};
1DEB920308733DBB0010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ARCHS = (
ppc,
i386,
);
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
GCC_MODEL_TUNING = G5;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = ../../Common/PrefixFiles/
ADICarbonRelease_Prefix.h;
INSTALL_PATH = /usr/local/lib;
PRODUCT_NAME = p2cLibs;
};
name = Release;
};
1DEB920608733DBB0010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 930258A90A1972D7008C6EEC /*
ADICrossDevelop.xcconfig */;
buildSettings = {
GCC_PREFIX_HEADER = ../../Common/PrefixFiles/
ADICarbonDebug_Prefix.h;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4;
MACOSX_DEPLOYMENT_TARGET_ppc = 10.3;
PREBINDING = NO;
SDKROOT = "";
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk;
SDKROOT_ppc = /Developer/SDKs/MacOSX10.3.9.sdk;
USER_HEADER_SEARCH_PATHS = "../../Common/MacToolBoxExtras ../../
Common/OEMIncludes";
};
name = Debug;
};
1DEB920708733DBB0010E9CD /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 930258A90A1972D7008C6EEC /*
ADICrossDevelop.xcconfig */;
buildSettings = {
ARCHS = ( // this is new
ppc, // this is new
i386, // this is new
); // this is new
GCC_PREFIX_HEADER = ../../Common/PrefixFiles/
ADICarbonDebug_Prefix.h;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4;
MACOSX_DEPLOYMENT_TARGET_ppc = 10.3;
PREBINDING = NO;
SDKROOT = "";
SDKROOT_i386 = /Developer/SDKs/MacOSX10.4u.sdk;
SDKROOT_ppc = /Developer/SDKs/MacOSX10.3.9.sdk;
USER_HEADER_SEARCH_PATHS = "../../Common/MacToolBoxExtras ../../
Common/OEMIncludes";
};
name = Release;
};
/* End XCBuildConfiguration section */
Also of note is that when I was trying to prepare the example above,
I had to quit and relaunch xcode before it would truly reload the
project; I had closed the project, re-checked out a clean version of
the pbxproj, and Xcode was still showing me a version of the project
with ARCHS set to ppc i386, presumably cached somewhere. This may be
related to the fact that I was opening the project from the "External
frameworks and libraries" group of another (master) project.
When I quit xcode, set the pbxproj read-only, and opened the project
again it again interpreted the ARCHS in the file as NATIVE_ARCH..
$ARRGH
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden