[GH-ISSUE #555] Injecting 3 or more tweaks causes the injection process to hang and be killed #116

Closed
opened 2026-03-04 00:24:03 +03:00 by kerem · 5 comments
Owner

Originally created by @jluo98 on GitHub (Mar 18, 2025).
Original GitHub issue: https://github.com/SignTools/SignTools/issues/555

I tried basic troubleshooting first

Describe the bug

When injecting 3 or more tweaks, the signing process will get stuck at injecting the 3rd tweak, hang, and be killed.

To reproduce

Steps to reproduce the behavior:

  1. Click on "Upload App"
  2. Choose a decrypted IPA file, the distribution signing profile, and the GitHub Builder (same issue when using a self-hosted builder on a M4 Mac mini)
  3. Switch to the "Advanced" tab and enable "Force original bundle ID"
  4. Choose 3 deb files (same issue when choosing dylib files)
  5. Submit the app and watch the signing logs get stuck at "Injecting" the 3rd tweak

Expected behavior

SignTools inject all tweaks provided.

Logs

If possible, please include logs.

2025-03-18T07:29:08.6060550Z Current runner version: '2.322.0'
2025-03-18T07:29:08.6076780Z ##[group]Operating System
2025-03-18T07:29:08.6077250Z macOS
2025-03-18T07:29:08.6077580Z 14.7.4
2025-03-18T07:29:08.6077880Z 23H420
2025-03-18T07:29:08.6078230Z ##[endgroup]
2025-03-18T07:29:08.6078560Z ##[group]Runner Image
2025-03-18T07:29:08.6078910Z Image: macos-14-arm64
2025-03-18T07:29:08.6079270Z Version: 20250304.1018
2025-03-18T07:29:08.6079970Z Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20250304.1018/images/macos/macos-14-arm64-Readme.md
2025-03-18T07:29:08.6080920Z Image Release: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20250304.1018
2025-03-18T07:29:08.6081520Z ##[endgroup]
2025-03-18T07:29:08.6081880Z ##[group]Runner Image Provisioner
2025-03-18T07:29:08.6082310Z 2.0.422.1+55c30c14fe2a0a1547db1b656933ae07d97649a9
2025-03-18T07:29:08.6082750Z ##[endgroup]
2025-03-18T07:29:08.6083470Z ##[group]GITHUB_TOKEN Permissions
2025-03-18T07:29:08.6084600Z Contents: read
2025-03-18T07:29:08.6084960Z Metadata: read
2025-03-18T07:29:08.6085360Z Packages: read
2025-03-18T07:29:08.6085760Z ##[endgroup]
2025-03-18T07:29:08.6087590Z Secret source: Actions
2025-03-18T07:29:08.6088080Z Prepare workflow directory
2025-03-18T07:29:08.6436320Z Prepare all required actions
2025-03-18T07:29:08.6461080Z Getting action download info
2025-03-18T07:29:08.8093840Z Download action repository 'actions/checkout@v4' (SHA:11bd71901bbe5b1630ceea73d27597364c9af683)
2025-03-18T07:29:09.0513800Z Download action repository 'actions/cache@v4' (SHA:d4323d4df104b026a6aa633fdb11d772146be0bf)
2025-03-18T07:29:10.3445580Z Complete job name: sign
2025-03-18T07:29:10.3754460Z ##[group]Run actions/checkout@v4
2025-03-18T07:29:10.3754950Z with:
2025-03-18T07:29:10.3755240Z   repository: jluo98/SignTools-CI
2025-03-18T07:29:10.3755690Z   token: ***
2025-03-18T07:29:10.3755960Z   ssh-strict: true
2025-03-18T07:29:10.3756260Z   ssh-user: git
2025-03-18T07:29:10.3756550Z   persist-credentials: true
2025-03-18T07:29:10.3756920Z   clean: true
2025-03-18T07:29:10.3757220Z   sparse-checkout-cone-mode: true
2025-03-18T07:29:10.3757560Z   fetch-depth: 1
2025-03-18T07:29:10.3757840Z   fetch-tags: false
2025-03-18T07:29:10.3758140Z   show-progress: true
2025-03-18T07:29:10.3758470Z   lfs: false
2025-03-18T07:29:10.3758750Z   submodules: false
2025-03-18T07:29:10.3759050Z   set-safe-directory: true
2025-03-18T07:29:10.3759460Z env:
2025-03-18T07:29:10.3759770Z   SECRET_URL: ***
2025-03-18T07:29:10.3760290Z   SECRET_KEY: ***
2025-03-18T07:29:10.3760650Z ##[endgroup]
2025-03-18T07:29:10.6412900Z Syncing repository: jluo98/SignTools-CI
2025-03-18T07:29:10.6414170Z ##[group]Getting Git version info
2025-03-18T07:29:10.6414700Z Working directory is '/Users/runner/work/SignTools-CI/SignTools-CI'
2025-03-18T07:29:10.6415430Z [command]/opt/homebrew/bin/git version
2025-03-18T07:29:10.6623940Z git version 2.48.1
2025-03-18T07:29:10.6649450Z ##[endgroup]
2025-03-18T07:29:10.6654810Z Copying '/Users/runner/.gitconfig' to '/Users/runner/work/_temp/b73c7260-ea20-4ba1-bd41-a80cda02659f/.gitconfig'
2025-03-18T07:29:10.6661000Z Temporarily overriding HOME='/Users/runner/work/_temp/b73c7260-ea20-4ba1-bd41-a80cda02659f' before making global git config changes
2025-03-18T07:29:10.6661970Z Adding repository directory to the temporary git global config as a safe directory
2025-03-18T07:29:10.6668470Z [command]/opt/homebrew/bin/git config --global --add safe.directory /Users/runner/work/SignTools-CI/SignTools-CI
2025-03-18T07:29:10.6744480Z Deleting the contents of '/Users/runner/work/SignTools-CI/SignTools-CI'
2025-03-18T07:29:10.6746430Z ##[group]Initializing the repository
2025-03-18T07:29:10.6750430Z [command]/opt/homebrew/bin/git init /Users/runner/work/SignTools-CI/SignTools-CI
2025-03-18T07:29:10.6891790Z hint: Using 'master' as the name for the initial branch. This default branch name
2025-03-18T07:29:10.6892760Z hint: is subject to change. To configure the initial branch name to use in all
2025-03-18T07:29:10.6893940Z hint: of your new repositories, which will suppress this warning, call:
2025-03-18T07:29:10.6894900Z hint:
2025-03-18T07:29:10.6895310Z hint: 	git config --global init.defaultBranch <name>
2025-03-18T07:29:10.6895750Z hint:
2025-03-18T07:29:10.6896200Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2025-03-18T07:29:10.6896850Z hint: 'development'. The just-created branch can be renamed via this command:
2025-03-18T07:29:10.6897370Z hint:
2025-03-18T07:29:10.6897690Z hint: 	git branch -m <name>
2025-03-18T07:29:10.6898230Z Initialized empty Git repository in /Users/runner/work/SignTools-CI/SignTools-CI/.git/
2025-03-18T07:29:10.6900440Z [command]/opt/homebrew/bin/git remote add origin https://github.com/jluo98/SignTools-CI
2025-03-18T07:29:10.6950730Z ##[endgroup]
2025-03-18T07:29:10.6951270Z ##[group]Disabling automatic garbage collection
2025-03-18T07:29:10.6952840Z [command]/opt/homebrew/bin/git config --local gc.auto 0
2025-03-18T07:29:10.6995040Z ##[endgroup]
2025-03-18T07:29:10.6995750Z ##[group]Setting up auth
2025-03-18T07:29:10.6999200Z [command]/opt/homebrew/bin/git config --local --name-only --get-regexp core\.sshCommand
2025-03-18T07:29:10.7043450Z [command]/opt/homebrew/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2025-03-18T07:29:10.7606650Z [command]/opt/homebrew/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2025-03-18T07:29:10.7648710Z [command]/opt/homebrew/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2025-03-18T07:29:10.8126440Z [command]/opt/homebrew/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2025-03-18T07:29:10.8183830Z ##[endgroup]
2025-03-18T07:29:10.8184630Z ##[group]Fetching the repository
2025-03-18T07:29:10.8189450Z [command]/opt/homebrew/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +f4a9706e8835d7c2326cde29959cbfd3b3b1e455:refs/remotes/origin/master
2025-03-18T07:29:11.7573470Z From https://github.com/jluo98/SignTools-CI
2025-03-18T07:29:11.7574640Z  * [new ref]         f4a9706e8835d7c2326cde29959cbfd3b3b1e455 -> origin/master
2025-03-18T07:29:11.7627270Z ##[endgroup]
2025-03-18T07:29:11.7627890Z ##[group]Determining the checkout info
2025-03-18T07:29:11.7628540Z ##[endgroup]
2025-03-18T07:29:11.7631130Z [command]/opt/homebrew/bin/git sparse-checkout disable
2025-03-18T07:29:11.7694100Z [command]/opt/homebrew/bin/git config --local --unset-all extensions.worktreeConfig
2025-03-18T07:29:11.7736990Z ##[group]Checking out the ref
2025-03-18T07:29:11.7739220Z [command]/opt/homebrew/bin/git checkout --progress --force -B master refs/remotes/origin/master
2025-03-18T07:29:11.7893960Z Reset branch 'master'
2025-03-18T07:29:11.7908730Z branch 'master' set up to track 'origin/master'.
2025-03-18T07:29:11.7910900Z ##[endgroup]
2025-03-18T07:29:11.7976370Z [command]/opt/homebrew/bin/git log -1 --format=%H
2025-03-18T07:29:11.8031120Z f4a9706e8835d7c2326cde29959cbfd3b3b1e455
2025-03-18T07:29:11.8184170Z ##[group]Run actions/cache@v4
2025-03-18T07:29:11.8184610Z with:
2025-03-18T07:29:11.8184930Z   path: ~/.fastlane
2025-03-18T07:29:11.8185270Z   key: session-13917692023
2025-03-18T07:29:11.8185720Z   restore-keys: session

2025-03-18T07:29:11.8186100Z   enableCrossOsArchive: false
2025-03-18T07:29:11.8186470Z   fail-on-cache-miss: false
2025-03-18T07:29:11.8186820Z   lookup-only: false
2025-03-18T07:29:11.8187140Z   save-always: false
2025-03-18T07:29:11.8187470Z env:
2025-03-18T07:29:11.8187860Z   SECRET_URL: ***
2025-03-18T07:29:11.8188360Z   SECRET_KEY: ***
2025-03-18T07:29:11.8188690Z ##[endgroup]
2025-03-18T07:29:12.1302490Z Cache not found for input keys: session-13917692023, session
2025-03-18T07:29:12.1390010Z ##[group]Run PYTHONUNBUFFERED=1 ./sign.py
2025-03-18T07:29:12.1390890Z PYTHONUNBUFFERED=1 ./sign.py
2025-03-18T07:29:12.1467210Z shell: /bin/bash -e {0}
2025-03-18T07:29:12.1467720Z env:
2025-03-18T07:29:12.1468280Z   SECRET_URL: ***
2025-03-18T07:29:12.1468950Z   SECRET_KEY: ***
2025-03-18T07:29:12.1469380Z ##[endgroup]
2025-03-18T07:29:12.3781900Z Initializing dependencies...
2025-03-18T07:29:13.1622900Z Downloading job files...
2025-03-18T07:29:14.1907210Z 15897600 0 0.00%
2025-03-18T07:29:14.2276420Z Download finished!
2025-03-18T07:29:14.2555280Z Downloading app...
2025-03-18T07:29:15.2996750Z 42914560 279651210 15.35%
2025-03-18T07:29:15.3099920Z 44208896 279651210 15.81%
2025-03-18T07:29:15.3501580Z 49378954 279651210 17.66%
2025-03-18T07:29:15.4525610Z 59040853 279651210 21.11%
2025-03-18T07:29:15.5302700Z 66286368 279651210 23.70%
2025-03-18T07:29:15.5926000Z 72139040 279651210 25.80%
2025-03-18T07:29:15.6729820Z 80134432 279651210 28.66%
2025-03-18T07:29:15.9587560Z 110264608 279651210 39.43%
2025-03-18T07:29:16.0025960Z 116929109 279651210 41.81%
2025-03-18T07:29:16.0874770Z 124842581 279651210 44.64%
2025-03-18T07:29:16.1478770Z 129639306 279651210 46.36%
2025-03-18T07:29:16.2729740Z 142746506 279651210 51.04%
2025-03-18T07:29:16.3963800Z 157180810 279651210 56.21%
2025-03-18T07:29:16.4151700Z 158606218 279651210 56.72%
2025-03-18T07:29:16.4940310Z 168178263 279651210 60.14%
2025-03-18T07:29:16.5385150Z 171688535 279651210 61.39%
2025-03-18T07:29:16.8686940Z 206156375 279651210 73.72%
2025-03-18T07:29:17.0244330Z 222507607 279651210 79.57%
2025-03-18T07:29:17.0751460Z 228405847 279651210 81.68%
2025-03-18T07:29:17.0805810Z 229061207 279651210 81.91%
2025-03-18T07:29:17.1504110Z 234631767 279651210 83.90%
2025-03-18T07:29:17.1871180Z 237986698 279651210 85.10%
2025-03-18T07:29:17.2449480Z 243397214 279651210 87.04%
2025-03-18T07:29:17.5670860Z 268579422 279651210 96.04%
2025-03-18T07:29:17.6920130Z 275391370 279651210 98.48%
2025-03-18T07:29:17.7366670Z 276767626 279651210 98.97%
2025-03-18T07:29:17.9406210Z 279651210 279651210 100.00%
2025-03-18T07:29:18.3635060Z Download finished!
2025-03-18T07:29:18.3713840Z Creating keychain...
2025-03-18T07:29:18.8268710Z Using distribution certificate
2025-03-18T07:29:18.8269370Z Using developer account
2025-03-18T07:29:18.8273760Z Extracting app...
2025-03-18T07:29:23.6641830Z Found tweaks, injecting...
2025-03-18T07:29:23.6902590Z Processing com.25mao.MiYou_3.8-1.deb
2025-03-18T07:29:24.9734550Z Processing com.25mao.wcplugins_0.1-2.deb
2025-03-18T07:29:24.9941780Z Processing com.tencent.themebox_1.1.8-1.deb
2025-03-18T07:29:25.2015040Z Injecting /var/folders/0j/bwqcs4y508s2n4ck4dhf3rpc0000gn/T/tmpsbu9kdfq/Frameworks/MiYou.dylib @executable_path/Frameworks/MiYou.dylib
2025-03-18T07:29:25.4715820Z Injecting /var/folders/0j/bwqcs4y508s2n4ck4dhf3rpc0000gn/T/tmpsbu9kdfq/Frameworks/ThemeBox.dylib @executable_path/Frameworks/ThemeBox.dylib
2025-03-18T07:29:25.4888760Z Injecting /var/folders/0j/bwqcs4y508s2n4ck4dhf3rpc0000gn/T/tmpsbu9kdfq/Frameworks/wcplugins.dylib @executable_path/Frameworks/wcplugins.dylib
2025-03-18T07:36:37.3738390Z /Users/runner/work/_temp/4456ffac-0f1e-4181-90f7-1d42a4760c25.sh: line 1:  1790 Killed: 9               PYTHONUNBUFFERED=1 ./sign.py
2025-03-18T07:36:37.3778230Z ##[error]Process completed with exit code 137.
2025-03-18T07:36:37.4057160Z Post job cleanup.
2025-03-18T07:36:37.7384360Z [command]/opt/homebrew/bin/git version
2025-03-18T07:36:37.7656380Z git version 2.48.1
2025-03-18T07:36:37.7753350Z Copying '/Users/runner/.gitconfig' to '/Users/runner/work/_temp/bcd6b0cc-6ca4-4f88-8f62-eee04f0e8788/.gitconfig'
2025-03-18T07:36:37.7822390Z Temporarily overriding HOME='/Users/runner/work/_temp/bcd6b0cc-6ca4-4f88-8f62-eee04f0e8788' before making global git config changes
2025-03-18T07:36:37.7823010Z Adding repository directory to the temporary git global config as a safe directory
2025-03-18T07:36:37.7831040Z [command]/opt/homebrew/bin/git config --global --add safe.directory /Users/runner/work/SignTools-CI/SignTools-CI
2025-03-18T07:36:37.8053750Z [command]/opt/homebrew/bin/git config --local --name-only --get-regexp core\.sshCommand
2025-03-18T07:36:37.8119250Z [command]/opt/homebrew/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2025-03-18T07:36:37.9924230Z [command]/opt/homebrew/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2025-03-18T07:36:37.9956760Z http.https://github.com/.extraheader
2025-03-18T07:36:37.9965550Z [command]/opt/homebrew/bin/git config --local --unset-all http.https://github.com/.extraheader
2025-03-18T07:36:38.0021110Z [command]/opt/homebrew/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2025-03-18T07:36:38.0663240Z Cleaning up orphan processes

Screenshots

N/A

System configuration

  • SignTools version: 3.0.8
  • Installation type: cloud server, proxied by traefik then Cloudflare
  • Operating System: Docker (Web), macOS (SignTools-Builder)
  • Builder type: issue exists on both SignTools-CI and SignTools-Builder
  • Builder version: SignTools-CI f4a9706, SignTools-Builder 1.1.17

Additional context

If I choose any 2 out of the 3 tweaks, signing would likely succeed.

Originally created by @jluo98 on GitHub (Mar 18, 2025). Original GitHub issue: https://github.com/SignTools/SignTools/issues/555 **I tried basic troubleshooting first** - [X] Updated **both** [SignTools](https://github.com/SignTools/SignTools) **and** the builder ([SignTools-CI](https://github.com/SignTools/SignTools-CI) or [SignTools-Builder](https://github.com/SignTools/SignTools-Builder)) to the latest version - [X] Read through the [FAQ page](https://github.com/SignTools/SignTools/blob/master/FAQ.md) **Describe the bug** When injecting 3 or more tweaks, the signing process will get stuck at injecting the 3rd tweak, hang, and be killed. **To reproduce** Steps to reproduce the behavior: 1. Click on "Upload App" 2. Choose a decrypted IPA file, the distribution signing profile, and the GitHub Builder (same issue when using a self-hosted builder on a M4 Mac mini) 3. Switch to the "Advanced" tab and enable "Force original bundle ID" 4. Choose 3 deb files (same issue when choosing dylib files) 5. Submit the app and watch the signing logs get stuck at "Injecting" the 3rd tweak **Expected behavior** SignTools inject all tweaks provided. **Logs** If possible, please include logs. ``` 2025-03-18T07:29:08.6060550Z Current runner version: '2.322.0' 2025-03-18T07:29:08.6076780Z ##[group]Operating System 2025-03-18T07:29:08.6077250Z macOS 2025-03-18T07:29:08.6077580Z 14.7.4 2025-03-18T07:29:08.6077880Z 23H420 2025-03-18T07:29:08.6078230Z ##[endgroup] 2025-03-18T07:29:08.6078560Z ##[group]Runner Image 2025-03-18T07:29:08.6078910Z Image: macos-14-arm64 2025-03-18T07:29:08.6079270Z Version: 20250304.1018 2025-03-18T07:29:08.6079970Z Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20250304.1018/images/macos/macos-14-arm64-Readme.md 2025-03-18T07:29:08.6080920Z Image Release: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20250304.1018 2025-03-18T07:29:08.6081520Z ##[endgroup] 2025-03-18T07:29:08.6081880Z ##[group]Runner Image Provisioner 2025-03-18T07:29:08.6082310Z 2.0.422.1+55c30c14fe2a0a1547db1b656933ae07d97649a9 2025-03-18T07:29:08.6082750Z ##[endgroup] 2025-03-18T07:29:08.6083470Z ##[group]GITHUB_TOKEN Permissions 2025-03-18T07:29:08.6084600Z Contents: read 2025-03-18T07:29:08.6084960Z Metadata: read 2025-03-18T07:29:08.6085360Z Packages: read 2025-03-18T07:29:08.6085760Z ##[endgroup] 2025-03-18T07:29:08.6087590Z Secret source: Actions 2025-03-18T07:29:08.6088080Z Prepare workflow directory 2025-03-18T07:29:08.6436320Z Prepare all required actions 2025-03-18T07:29:08.6461080Z Getting action download info 2025-03-18T07:29:08.8093840Z Download action repository 'actions/checkout@v4' (SHA:11bd71901bbe5b1630ceea73d27597364c9af683) 2025-03-18T07:29:09.0513800Z Download action repository 'actions/cache@v4' (SHA:d4323d4df104b026a6aa633fdb11d772146be0bf) 2025-03-18T07:29:10.3445580Z Complete job name: sign 2025-03-18T07:29:10.3754460Z ##[group]Run actions/checkout@v4 2025-03-18T07:29:10.3754950Z with: 2025-03-18T07:29:10.3755240Z repository: jluo98/SignTools-CI 2025-03-18T07:29:10.3755690Z token: *** 2025-03-18T07:29:10.3755960Z ssh-strict: true 2025-03-18T07:29:10.3756260Z ssh-user: git 2025-03-18T07:29:10.3756550Z persist-credentials: true 2025-03-18T07:29:10.3756920Z clean: true 2025-03-18T07:29:10.3757220Z sparse-checkout-cone-mode: true 2025-03-18T07:29:10.3757560Z fetch-depth: 1 2025-03-18T07:29:10.3757840Z fetch-tags: false 2025-03-18T07:29:10.3758140Z show-progress: true 2025-03-18T07:29:10.3758470Z lfs: false 2025-03-18T07:29:10.3758750Z submodules: false 2025-03-18T07:29:10.3759050Z set-safe-directory: true 2025-03-18T07:29:10.3759460Z env: 2025-03-18T07:29:10.3759770Z SECRET_URL: *** 2025-03-18T07:29:10.3760290Z SECRET_KEY: *** 2025-03-18T07:29:10.3760650Z ##[endgroup] 2025-03-18T07:29:10.6412900Z Syncing repository: jluo98/SignTools-CI 2025-03-18T07:29:10.6414170Z ##[group]Getting Git version info 2025-03-18T07:29:10.6414700Z Working directory is '/Users/runner/work/SignTools-CI/SignTools-CI' 2025-03-18T07:29:10.6415430Z [command]/opt/homebrew/bin/git version 2025-03-18T07:29:10.6623940Z git version 2.48.1 2025-03-18T07:29:10.6649450Z ##[endgroup] 2025-03-18T07:29:10.6654810Z Copying '/Users/runner/.gitconfig' to '/Users/runner/work/_temp/b73c7260-ea20-4ba1-bd41-a80cda02659f/.gitconfig' 2025-03-18T07:29:10.6661000Z Temporarily overriding HOME='/Users/runner/work/_temp/b73c7260-ea20-4ba1-bd41-a80cda02659f' before making global git config changes 2025-03-18T07:29:10.6661970Z Adding repository directory to the temporary git global config as a safe directory 2025-03-18T07:29:10.6668470Z [command]/opt/homebrew/bin/git config --global --add safe.directory /Users/runner/work/SignTools-CI/SignTools-CI 2025-03-18T07:29:10.6744480Z Deleting the contents of '/Users/runner/work/SignTools-CI/SignTools-CI' 2025-03-18T07:29:10.6746430Z ##[group]Initializing the repository 2025-03-18T07:29:10.6750430Z [command]/opt/homebrew/bin/git init /Users/runner/work/SignTools-CI/SignTools-CI 2025-03-18T07:29:10.6891790Z hint: Using 'master' as the name for the initial branch. This default branch name 2025-03-18T07:29:10.6892760Z hint: is subject to change. To configure the initial branch name to use in all 2025-03-18T07:29:10.6893940Z hint: of your new repositories, which will suppress this warning, call: 2025-03-18T07:29:10.6894900Z hint: 2025-03-18T07:29:10.6895310Z hint: git config --global init.defaultBranch <name> 2025-03-18T07:29:10.6895750Z hint: 2025-03-18T07:29:10.6896200Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and 2025-03-18T07:29:10.6896850Z hint: 'development'. The just-created branch can be renamed via this command: 2025-03-18T07:29:10.6897370Z hint: 2025-03-18T07:29:10.6897690Z hint: git branch -m <name> 2025-03-18T07:29:10.6898230Z Initialized empty Git repository in /Users/runner/work/SignTools-CI/SignTools-CI/.git/ 2025-03-18T07:29:10.6900440Z [command]/opt/homebrew/bin/git remote add origin https://github.com/jluo98/SignTools-CI 2025-03-18T07:29:10.6950730Z ##[endgroup] 2025-03-18T07:29:10.6951270Z ##[group]Disabling automatic garbage collection 2025-03-18T07:29:10.6952840Z [command]/opt/homebrew/bin/git config --local gc.auto 0 2025-03-18T07:29:10.6995040Z ##[endgroup] 2025-03-18T07:29:10.6995750Z ##[group]Setting up auth 2025-03-18T07:29:10.6999200Z [command]/opt/homebrew/bin/git config --local --name-only --get-regexp core\.sshCommand 2025-03-18T07:29:10.7043450Z [command]/opt/homebrew/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" 2025-03-18T07:29:10.7606650Z [command]/opt/homebrew/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2025-03-18T07:29:10.7648710Z [command]/opt/homebrew/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" 2025-03-18T07:29:10.8126440Z [command]/opt/homebrew/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic *** 2025-03-18T07:29:10.8183830Z ##[endgroup] 2025-03-18T07:29:10.8184630Z ##[group]Fetching the repository 2025-03-18T07:29:10.8189450Z [command]/opt/homebrew/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +f4a9706e8835d7c2326cde29959cbfd3b3b1e455:refs/remotes/origin/master 2025-03-18T07:29:11.7573470Z From https://github.com/jluo98/SignTools-CI 2025-03-18T07:29:11.7574640Z * [new ref] f4a9706e8835d7c2326cde29959cbfd3b3b1e455 -> origin/master 2025-03-18T07:29:11.7627270Z ##[endgroup] 2025-03-18T07:29:11.7627890Z ##[group]Determining the checkout info 2025-03-18T07:29:11.7628540Z ##[endgroup] 2025-03-18T07:29:11.7631130Z [command]/opt/homebrew/bin/git sparse-checkout disable 2025-03-18T07:29:11.7694100Z [command]/opt/homebrew/bin/git config --local --unset-all extensions.worktreeConfig 2025-03-18T07:29:11.7736990Z ##[group]Checking out the ref 2025-03-18T07:29:11.7739220Z [command]/opt/homebrew/bin/git checkout --progress --force -B master refs/remotes/origin/master 2025-03-18T07:29:11.7893960Z Reset branch 'master' 2025-03-18T07:29:11.7908730Z branch 'master' set up to track 'origin/master'. 2025-03-18T07:29:11.7910900Z ##[endgroup] 2025-03-18T07:29:11.7976370Z [command]/opt/homebrew/bin/git log -1 --format=%H 2025-03-18T07:29:11.8031120Z f4a9706e8835d7c2326cde29959cbfd3b3b1e455 2025-03-18T07:29:11.8184170Z ##[group]Run actions/cache@v4 2025-03-18T07:29:11.8184610Z with: 2025-03-18T07:29:11.8184930Z path: ~/.fastlane 2025-03-18T07:29:11.8185270Z key: session-13917692023 2025-03-18T07:29:11.8185720Z restore-keys: session 2025-03-18T07:29:11.8186100Z enableCrossOsArchive: false 2025-03-18T07:29:11.8186470Z fail-on-cache-miss: false 2025-03-18T07:29:11.8186820Z lookup-only: false 2025-03-18T07:29:11.8187140Z save-always: false 2025-03-18T07:29:11.8187470Z env: 2025-03-18T07:29:11.8187860Z SECRET_URL: *** 2025-03-18T07:29:11.8188360Z SECRET_KEY: *** 2025-03-18T07:29:11.8188690Z ##[endgroup] 2025-03-18T07:29:12.1302490Z Cache not found for input keys: session-13917692023, session 2025-03-18T07:29:12.1390010Z ##[group]Run PYTHONUNBUFFERED=1 ./sign.py 2025-03-18T07:29:12.1390890Z PYTHONUNBUFFERED=1 ./sign.py 2025-03-18T07:29:12.1467210Z shell: /bin/bash -e {0} 2025-03-18T07:29:12.1467720Z env: 2025-03-18T07:29:12.1468280Z SECRET_URL: *** 2025-03-18T07:29:12.1468950Z SECRET_KEY: *** 2025-03-18T07:29:12.1469380Z ##[endgroup] 2025-03-18T07:29:12.3781900Z Initializing dependencies... 2025-03-18T07:29:13.1622900Z Downloading job files... 2025-03-18T07:29:14.1907210Z 15897600 0 0.00% 2025-03-18T07:29:14.2276420Z Download finished! 2025-03-18T07:29:14.2555280Z Downloading app... 2025-03-18T07:29:15.2996750Z 42914560 279651210 15.35% 2025-03-18T07:29:15.3099920Z 44208896 279651210 15.81% 2025-03-18T07:29:15.3501580Z 49378954 279651210 17.66% 2025-03-18T07:29:15.4525610Z 59040853 279651210 21.11% 2025-03-18T07:29:15.5302700Z 66286368 279651210 23.70% 2025-03-18T07:29:15.5926000Z 72139040 279651210 25.80% 2025-03-18T07:29:15.6729820Z 80134432 279651210 28.66% 2025-03-18T07:29:15.9587560Z 110264608 279651210 39.43% 2025-03-18T07:29:16.0025960Z 116929109 279651210 41.81% 2025-03-18T07:29:16.0874770Z 124842581 279651210 44.64% 2025-03-18T07:29:16.1478770Z 129639306 279651210 46.36% 2025-03-18T07:29:16.2729740Z 142746506 279651210 51.04% 2025-03-18T07:29:16.3963800Z 157180810 279651210 56.21% 2025-03-18T07:29:16.4151700Z 158606218 279651210 56.72% 2025-03-18T07:29:16.4940310Z 168178263 279651210 60.14% 2025-03-18T07:29:16.5385150Z 171688535 279651210 61.39% 2025-03-18T07:29:16.8686940Z 206156375 279651210 73.72% 2025-03-18T07:29:17.0244330Z 222507607 279651210 79.57% 2025-03-18T07:29:17.0751460Z 228405847 279651210 81.68% 2025-03-18T07:29:17.0805810Z 229061207 279651210 81.91% 2025-03-18T07:29:17.1504110Z 234631767 279651210 83.90% 2025-03-18T07:29:17.1871180Z 237986698 279651210 85.10% 2025-03-18T07:29:17.2449480Z 243397214 279651210 87.04% 2025-03-18T07:29:17.5670860Z 268579422 279651210 96.04% 2025-03-18T07:29:17.6920130Z 275391370 279651210 98.48% 2025-03-18T07:29:17.7366670Z 276767626 279651210 98.97% 2025-03-18T07:29:17.9406210Z 279651210 279651210 100.00% 2025-03-18T07:29:18.3635060Z Download finished! 2025-03-18T07:29:18.3713840Z Creating keychain... 2025-03-18T07:29:18.8268710Z Using distribution certificate 2025-03-18T07:29:18.8269370Z Using developer account 2025-03-18T07:29:18.8273760Z Extracting app... 2025-03-18T07:29:23.6641830Z Found tweaks, injecting... 2025-03-18T07:29:23.6902590Z Processing com.25mao.MiYou_3.8-1.deb 2025-03-18T07:29:24.9734550Z Processing com.25mao.wcplugins_0.1-2.deb 2025-03-18T07:29:24.9941780Z Processing com.tencent.themebox_1.1.8-1.deb 2025-03-18T07:29:25.2015040Z Injecting /var/folders/0j/bwqcs4y508s2n4ck4dhf3rpc0000gn/T/tmpsbu9kdfq/Frameworks/MiYou.dylib @executable_path/Frameworks/MiYou.dylib 2025-03-18T07:29:25.4715820Z Injecting /var/folders/0j/bwqcs4y508s2n4ck4dhf3rpc0000gn/T/tmpsbu9kdfq/Frameworks/ThemeBox.dylib @executable_path/Frameworks/ThemeBox.dylib 2025-03-18T07:29:25.4888760Z Injecting /var/folders/0j/bwqcs4y508s2n4ck4dhf3rpc0000gn/T/tmpsbu9kdfq/Frameworks/wcplugins.dylib @executable_path/Frameworks/wcplugins.dylib 2025-03-18T07:36:37.3738390Z /Users/runner/work/_temp/4456ffac-0f1e-4181-90f7-1d42a4760c25.sh: line 1: 1790 Killed: 9 PYTHONUNBUFFERED=1 ./sign.py 2025-03-18T07:36:37.3778230Z ##[error]Process completed with exit code 137. 2025-03-18T07:36:37.4057160Z Post job cleanup. 2025-03-18T07:36:37.7384360Z [command]/opt/homebrew/bin/git version 2025-03-18T07:36:37.7656380Z git version 2.48.1 2025-03-18T07:36:37.7753350Z Copying '/Users/runner/.gitconfig' to '/Users/runner/work/_temp/bcd6b0cc-6ca4-4f88-8f62-eee04f0e8788/.gitconfig' 2025-03-18T07:36:37.7822390Z Temporarily overriding HOME='/Users/runner/work/_temp/bcd6b0cc-6ca4-4f88-8f62-eee04f0e8788' before making global git config changes 2025-03-18T07:36:37.7823010Z Adding repository directory to the temporary git global config as a safe directory 2025-03-18T07:36:37.7831040Z [command]/opt/homebrew/bin/git config --global --add safe.directory /Users/runner/work/SignTools-CI/SignTools-CI 2025-03-18T07:36:37.8053750Z [command]/opt/homebrew/bin/git config --local --name-only --get-regexp core\.sshCommand 2025-03-18T07:36:37.8119250Z [command]/opt/homebrew/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :" 2025-03-18T07:36:37.9924230Z [command]/opt/homebrew/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader 2025-03-18T07:36:37.9956760Z http.https://github.com/.extraheader 2025-03-18T07:36:37.9965550Z [command]/opt/homebrew/bin/git config --local --unset-all http.https://github.com/.extraheader 2025-03-18T07:36:38.0021110Z [command]/opt/homebrew/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :" 2025-03-18T07:36:38.0663240Z Cleaning up orphan processes ``` **Screenshots** N/A **System configuration** - SignTools version: 3.0.8 - Installation type: cloud server, proxied by traefik then Cloudflare - Operating System: Docker (Web), macOS (SignTools-Builder) - Builder type: issue exists on both SignTools-CI and SignTools-Builder - Builder version: SignTools-CI f4a9706, SignTools-Builder 1.1.17 **Additional context** If I choose any 2 out of the 3 tweaks, signing would likely succeed.
kerem 2026-03-04 00:24:03 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ViRb3 commented on GitHub (Mar 18, 2025):

I see no reason why the number of tweaks would cause an issue. I have personally injected more than 5 tweaks at once and never had an issue. This will likely be an issue with an individual tweak, or the unique combination of two tweaks. Can you try to narrow it down? Would also appreciate a link to the tweaks.

<!-- gh-comment-id:2734699381 --> @ViRb3 commented on GitHub (Mar 18, 2025): I see no reason why the number of tweaks would cause an issue. I have personally injected more than 5 tweaks at once and never had an issue. This will likely be an issue with an individual tweak, or the unique combination of two tweaks. Can you try to narrow it down? Would also appreciate a link to the tweaks.
Author
Owner

@jluo98 commented on GitHub (Mar 18, 2025):

That was my initial thought too- that one particular tweak is causing the issue. But I've tired injecting only 1 of them and any 2 of them without issues. Here's the IPA and tweaks if you'd like to take a look.

<!-- gh-comment-id:2734728361 --> @jluo98 commented on GitHub (Mar 18, 2025): That was my initial thought too- that one particular tweak is causing the issue. But I've tired injecting only 1 of them and any 2 of them without issues. Here's [the IPA and tweaks](https://drive.google.com/drive/folders/1Q_WXWkalGPNBSqWIX7NiGJznC_qgP-Qu?usp=sharing) if you'd like to take a look.
Author
Owner

@ViRb3 commented on GitHub (Mar 19, 2025):

I tracked down the issue. Seems like the particular binary you're trying to inject into has very limited space in its load command section, so you can't add 3x LC_LOAD_DYLIB commands, only two. The injection tool would give you an interactive prompt when there's no space, which the Python script did not handle, so it would hang. I released a fix that will automatically accept any interactive prompts, and also added additional logging. However, ultimately, I think you are out of luck with this binary, unless there's another injection tool that can expand the section. Perhaps a different version of your app would work?

<!-- gh-comment-id:2737550092 --> @ViRb3 commented on GitHub (Mar 19, 2025): I tracked down the issue. Seems like the particular binary you're trying to inject into has very limited space in its load command section, so you can't add 3x LC_LOAD_DYLIB commands, only two. The injection tool would give you an interactive prompt when there's no space, which the Python script did not handle, so it would hang. I released a fix that will automatically accept any interactive prompts, and also added additional logging. However, ultimately, I think you are out of luck with this binary, unless there's another injection tool that can expand the section. Perhaps a different version of your app would work?
Author
Owner

@jluo98 commented on GitHub (Mar 19, 2025):

That makes sense! I just remembered the previous version of this app did in fact accept 3 tweaks, but 4 would hang.

Thanks for tracking down the cause. Honestly I can live with only 2 tweaks for this app.

<!-- gh-comment-id:2737753184 --> @jluo98 commented on GitHub (Mar 19, 2025): That makes sense! I just remembered the previous version of this app did in fact accept 3 tweaks, but 4 would hang. Thanks for tracking down the cause. Honestly I can live with only 2 tweaks for this app.
Author
Owner

@jluo98 commented on GitHub (Mar 19, 2025):

I just did another test with the updated SignTools-CI. It seems that all 3 tweaks are injected and working correctly even with the low space warning.

<!-- gh-comment-id:2737942678 --> @jluo98 commented on GitHub (Mar 19, 2025): I just did another test with the updated SignTools-CI. It seems that all 3 tweaks are injected and working correctly even with the low space warning.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SignTools#116
No description provided.