From be38c8a9a856039a7153a94e66570bb41bd6da0f Mon Sep 17 00:00:00 2001 From: Blake Watters Date: Tue, 11 Oct 2011 17:55:37 -0400 Subject: [PATCH] Updated project file to explicitly build for armv6 and arm7. fixes #394, closes #395 In iOS 5, Apple has removed armv6 from $ARCHS_STANDARD_32_BIT. This can result in RestKit being built against armv7 only when you are really trying to build against the iOS 5 SDK, be deploy to 4.x devices. App store validation will fail in these situations. --- RestKit.xcodeproj/project.pbxproj | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/RestKit.xcodeproj/project.pbxproj b/RestKit.xcodeproj/project.pbxproj index b6a3b78d..2b31e6ca 100644 --- a/RestKit.xcodeproj/project.pbxproj +++ b/RestKit.xcodeproj/project.pbxproj @@ -2453,7 +2453,10 @@ isa = XCBuildConfiguration; baseConfigurationReference = 258F8500141061C3007AABCD /* PortableStaticLibrary.xcconfig */; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + ARCHS = ( + armv6, + armv7, + ); "ARCHS[sdk=macosx*]" = "$(ARCHS_STANDARD_32_64_BIT)"; BUILD_STYLE = Debug; GCC_C_LANGUAGE_STANDARD = c99; @@ -2461,7 +2464,7 @@ GCC_PREFIX_HEADER = Code/Support/RestKit_Prefix.pch; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 3.0; + IPHONEOS_DEPLOYMENT_TARGET = 4.0; OTHER_LDFLAGS = "-ObjC"; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx"; @@ -2474,14 +2477,17 @@ isa = XCBuildConfiguration; baseConfigurationReference = 258F8500141061C3007AABCD /* PortableStaticLibrary.xcconfig */; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + ARCHS = ( + armv6, + armv7, + ); "ARCHS[sdk=macosx*]" = "$(ARCHS_STANDARD_32_64_BIT)"; BUILD_STYLE = Release; GCC_C_LANGUAGE_STANDARD = c99; GCC_PREFIX_HEADER = Code/Support/RestKit_Prefix.pch; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 3.0; + IPHONEOS_DEPLOYMENT_TARGET = 4.0; OTHER_LDFLAGS = "-ObjC"; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx"; @@ -2617,14 +2623,17 @@ isa = XCBuildConfiguration; baseConfigurationReference = 258F8500141061C3007AABCD /* PortableStaticLibrary.xcconfig */; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + ARCHS = ( + armv6, + armv7, + ); "ARCHS[sdk=macosx*]" = "$(ARCHS_STANDARD_32_64_BIT)"; BUILD_STYLE = Release; GCC_C_LANGUAGE_STANDARD = c99; GCC_PREFIX_HEADER = Code/Support/RestKit_Prefix.pch; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 3.0; + IPHONEOS_DEPLOYMENT_TARGET = 4.0; OTHER_LDFLAGS = "-ObjC"; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx"; @@ -2943,14 +2952,17 @@ isa = XCBuildConfiguration; baseConfigurationReference = 258F8500141061C3007AABCD /* PortableStaticLibrary.xcconfig */; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + ARCHS = ( + armv6, + armv7, + ); "ARCHS[sdk=macosx*]" = "$(ARCHS_STANDARD_32_64_BIT)"; BUILD_STYLE = Release; GCC_C_LANGUAGE_STANDARD = c99; GCC_PREFIX_HEADER = Code/Support/RestKit_Prefix.pch; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 3.0; + IPHONEOS_DEPLOYMENT_TARGET = 4.0; OTHER_LDFLAGS = "-ObjC"; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = "iphonesimulator iphoneos macosx";