From b6b56a252c370af853606705ae4cc1bedd7e87e5 Mon Sep 17 00:00:00 2001 From: minggo Date: Sat, 27 Jul 2013 21:20:25 +0800 Subject: [PATCH] make iOS template work ok on armv7s devices build only active architecture only --- .../proj.ios/HelloCpp.xcodeproj/project.pbxproj | 2 ++ .../proj.ios/HelloJavascript.xcodeproj/project.pbxproj | 2 ++ .../proj.ios/HelloLua.xcodeproj/project.pbxproj | 2 ++ 3 files changed, 6 insertions(+) diff --git a/template/multi-platform-cpp/proj.ios/HelloCpp.xcodeproj/project.pbxproj b/template/multi-platform-cpp/proj.ios/HelloCpp.xcodeproj/project.pbxproj index 567f421cb9..8f34754a1c 100644 --- a/template/multi-platform-cpp/proj.ios/HelloCpp.xcodeproj/project.pbxproj +++ b/template/multi-platform-cpp/proj.ios/HelloCpp.xcodeproj/project.pbxproj @@ -605,6 +605,7 @@ "\"$(SRCROOT)/../../../cocos2dx/platform/third_party/ios/libraries\"", "\"$(SRCROOT)/../../../external/libwebsockets/ios/lib\"", ); + ONLY_ACTIVE_ARCH = YES; OTHER_CFLAGS = "-O2"; PRODUCT_NAME = HelloCpp; PROVISIONING_PROFILE = ""; @@ -655,6 +656,7 @@ "\"$(SRCROOT)/../../../cocos2dx/platform/third_party/ios/libraries\"", "\"$(SRCROOT)/../../../external/libwebsockets/ios/lib\"", ); + ONLY_ACTIVE_ARCH = YES; PRODUCT_NAME = HelloCpp; PROVISIONING_PROFILE = ""; "PROVISIONING_PROFILE[sdk=iphoneos*]" = ""; diff --git a/template/multi-platform-js/proj.ios/HelloJavascript.xcodeproj/project.pbxproj b/template/multi-platform-js/proj.ios/HelloJavascript.xcodeproj/project.pbxproj index 18d64274cf..5f0ecf7c0d 100644 --- a/template/multi-platform-js/proj.ios/HelloJavascript.xcodeproj/project.pbxproj +++ b/template/multi-platform-js/proj.ios/HelloJavascript.xcodeproj/project.pbxproj @@ -693,6 +693,7 @@ "\"$(SRCROOT)/../../../cocos2dx/platform/third_party/ios/libraries\"", "\"$(SRCROOT)/../../../external/libwebsockets/ios/lib\"", ); + ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ( "-lxml2", "-lz", @@ -741,6 +742,7 @@ "\"$(SRCROOT)/../../../cocos2dx/platform/third_party/ios/libraries\"", "\"$(SRCROOT)/../../../external/libwebsockets/ios/lib\"", ); + ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ( "-lxml2", "-lz", diff --git a/template/multi-platform-lua/proj.ios/HelloLua.xcodeproj/project.pbxproj b/template/multi-platform-lua/proj.ios/HelloLua.xcodeproj/project.pbxproj index 65cabb1b2d..80b06ce627 100644 --- a/template/multi-platform-lua/proj.ios/HelloLua.xcodeproj/project.pbxproj +++ b/template/multi-platform-lua/proj.ios/HelloLua.xcodeproj/project.pbxproj @@ -735,6 +735,7 @@ "\"$(SRCROOT)/../../../scripting/lua/luajit/ios\"", "\"$(SRCROOT)/../../../external/libwebsockets/ios/lib\"", ); + ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ""; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; @@ -784,6 +785,7 @@ "\"$(SRCROOT)/../../../scripting/lua/luajit/ios\"", "\"$(SRCROOT)/../../../external/libwebsockets/ios/lib\"", ); + ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = ""; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2";