From 68169ea2d7847a900214225ed4f2b47fc39e8f20 Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Tue, 9 Apr 2024 09:01:48 -0700 Subject: [PATCH] Added -nosign option for iOS to optionally skip codesigning (#1776) This allows non-simulator builds on CI servers without setting up team-id/provisioning-profile/etc. It also allows signing using a different method, if desired. Co-Authored-By: mcagabe19@users.noreply.github.com --- src/lime/tools/IOSHelper.hx | 7 +++++++ tools/CommandLineTools.hx | 1 + 2 files changed, 8 insertions(+) diff --git a/src/lime/tools/IOSHelper.hx b/src/lime/tools/IOSHelper.hx index ec47dd85b..8ba7bc3c1 100644 --- a/src/lime/tools/IOSHelper.hx +++ b/src/lime/tools/IOSHelper.hx @@ -30,6 +30,13 @@ class IOSHelper else { commands.push("build"); + if (project.targetFlags.exists("nosign")) + { + commands.push("CODE_SIGN_IDENTITY=\"\""); + commands.push("CODE_SIGNING_REQUIRED=\"NO\""); + commands.push("CODE_SIGN_ENTITLEMENTS=\"\""); + commands.push("CODE_SIGNING_ALLOWED=\"NO\""); + } } if (additionalArguments != null) diff --git a/tools/CommandLineTools.hx b/tools/CommandLineTools.hx index 857c3555b..c2a27f105 100644 --- a/tools/CommandLineTools.hx +++ b/tools/CommandLineTools.hx @@ -1004,6 +1004,7 @@ class CommandLineTools Log.println(" \x1b[3m(ios|android)\x1b[0m \x1b[1m-armv7\x1b[0m -- Compile for ARMv7 instead of the OS defaults"); Log.println(" \x1b[3m(ios|android)\x1b[0m \x1b[1m-armv7s\x1b[0m -- Compile for ARMv7s instead of the OS defaults"); Log.println(" \x1b[3m(ios)\x1b[0m \x1b[1m-arm64\x1b[0m -- Compile for ARM64 instead of the OS defaults"); + Log.println(" \x1b[3m(ios)\x1b[0m \x1b[1m-nosign\x1b[0m -- Compile executable, but skip codesigning"); } if (isProjectCommand)