From 0008f5db400665d0d390421f26cea85266240417 Mon Sep 17 00:00:00 2001 From: luboslenco Date: Mon, 26 Jan 2026 14:38:44 +0100 Subject: [PATCH] macos: xcode project fixes --- base/tools/make.js | 48 +++++++++++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/base/tools/make.js b/base/tools/make.js index f18c5859..95263a55 100644 --- a/base/tools/make.js +++ b/base/tools/make.js @@ -1503,11 +1503,13 @@ class XCodeExporter extends Exporter { this.p('CLANG_WARN_UNREACHABLE_CODE = YES;', 4); this.p('CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;', 4); this.p('CODE_SIGN_IDENTITY = "-";', 4); - if (platform === 'ios') { - this.p('"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";', 4); - } - else { - this.p('"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";', 4); + if (target_options.developmentTeam) { + if (platform === 'ios') { + this.p('"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";', 4); + } + else { + this.p('"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";', 4); + } } this.p('COPY_PHASE_STRIP = NO;', 4); this.p('ENABLE_STRICT_OBJC_MSGSEND = YES;', 4); @@ -1580,11 +1582,13 @@ class XCodeExporter extends Exporter { this.p('CLANG_WARN_UNREACHABLE_CODE = YES;', 4); this.p('CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;', 4); this.p('CODE_SIGN_IDENTITY = "-";', 4); - if (platform === 'ios') { - this.p('"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";', 4); - } - else { - this.p('"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";', 4); + if (target_options.developmentTeam) { + if (platform === 'ios') { + this.p('"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";', 4); + } + else { + this.p('"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";', 4); + } } this.p('COPY_PHASE_STRIP = YES;', 4); if (platform === 'macos') { @@ -1695,11 +1699,13 @@ class XCodeExporter extends Exporter { this.p('BUNDLE_VERSION = "' + target_options.version + '";', 4); this.p('BUILD_VERSION = "' + target_options.build + '";', 4); this.p('CODE_SIGN_IDENTITY = "-";', 4); - if (platform === 'ios') { - this.p('"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";', 4); - } - else { - this.p('"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";', 4); + if (target_options.developmentTeam) { + if (platform === 'ios') { + this.p('"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";', 4); + } + else { + this.p('"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";', 4); + } } this.p('PRODUCT_NAME = "$(TARGET_NAME)";', 4); this.p('};', 3); @@ -1771,11 +1777,13 @@ class XCodeExporter extends Exporter { this.p('BUNDLE_VERSION = "' + target_options.version + '";', 4); this.p('BUILD_VERSION = "' + target_options.build + '";', 4); this.p('CODE_SIGN_IDENTITY = "-";', 4); - if (platform === 'ios') { - this.p('"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";', 4); - } - else { - this.p('"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";', 4); + if (target_options.developmentTeam) { + if (platform === 'ios') { + this.p('"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development";', 4); + } + else { + this.p('"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";', 4); + } } this.p('PRODUCT_NAME = "$(TARGET_NAME)";', 4); this.p('};', 3);