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";