fix(ioscompanion): re-enable signing for the device runner build

companion/project.yml disables code signing for the simulator build, so
the device build inherited it and produced an unsigned runner that the
device rejected at install (0xe8008018). build-for-testing now forces
CODE_SIGNING_ALLOWED/REQUIRED=YES so automatic provisioning signs it.
This commit is contained in:
pj committed 2026-06-08 23:33:22 +05:30
1 parent 1357a2b1cc
commit 0a48502ab8
2 files changed
+7

No files matched your search

@@ -211,6 +211,11 @@ func buildForTestingArgs(projectPath, derivedDataPath string, creds signingCrede
"-authenticationKeyPath", creds.authKeyPath, "-authenticationKeyPath", creds.authKeyPath,
"-authenticationKeyID", creds.authKeyID, "-authenticationKeyID", creds.authKeyID,
"-authenticationKeyIssuerID", creds.authIssuerID, "-authenticationKeyIssuerID", creds.authIssuerID,
// companion/project.yml disables signing for the simulator build; the
// device install rejects an unsigned runner (0xe8008018), so signing is
// re-enabled here and the team drives automatic provisioning.
"CODE_SIGNING_ALLOWED=YES",
"CODE_SIGNING_REQUIRED=YES",
"CODE_SIGN_STYLE=Automatic", "CODE_SIGN_STYLE=Automatic",
"DEVELOPMENT_TEAM=" + creds.team, "DEVELOPMENT_TEAM=" + creds.team,
"GENERATE_INFOPLIST_FILE=YES", "GENERATE_INFOPLIST_FILE=YES",
@@ -21,6 +21,8 @@ func TestBuildForTestingArgs(t *testing.T) {
"-authenticationKeyPath /k/AuthKey.p8", "-authenticationKeyPath /k/AuthKey.p8",
"-authenticationKeyID KID", "-authenticationKeyID KID",
"-authenticationKeyIssuerID ISS", "-authenticationKeyIssuerID ISS",
"CODE_SIGNING_ALLOWED=YES",
"CODE_SIGNING_REQUIRED=YES",
"CODE_SIGN_STYLE=Automatic", "CODE_SIGN_STYLE=Automatic",
"DEVELOPMENT_TEAM=TEAM1", "DEVELOPMENT_TEAM=TEAM1",
"GENERATE_INFOPLIST_FILE=YES", "GENERATE_INFOPLIST_FILE=YES",