TrollStore icon indicating copy to clipboard operation
TrollStore copied to clipboard

Failed to sign successfully

Open FaSxxf opened this issue 11 months ago • 2 comments

No Duplicates Issue

  • [x] I'm sure I've searched on the issue tracker before creating one.

Expected Behavior?

I found that the signature was not successful After compiling TrollStore.tar and putting it into the Resource of TrollInstallerX, I was unable to install it properly. Then I used TrollStore to install TrollStore.tar myself, but after installation, it crashed and my iPad restarted. I checked the compilation process and examined the compiled files Firstly, check the temporary files


liqingshan@192 TrollStore % codesign -d /Users/liqingshan/Desktop/TrollStore/RootHelper/.theos/obj/trollstorehelper
/Users/liqingshan/Desktop/TrollStore/RootHelper/.theos/obj/trollstorehelper: code object is not signed at all
liqingshan@192 TrollStore % cd RootHelper

liqingshan@192 RootHelper % ../Exploits/fastPathSign/fastPathSign --entitlements entitlements.plist /Users/liqingshan/Desktop/TrollStore/RootHelper/.theos/obj/trollstorehelper
Error while signing: Error Domain=NSOSStatusErrorDomain Code=-67045 "(null)"
Failed adhoc signing (200) Continuing anyways...
Extracted best slice to /tmp/FbTORv
Applying CoreTrust bypass...
Applying App Store code directory...
Adding new signature blob...
Updating TeamID...
TeamID set to T8ALTGMVXN!
Doing initial signing to calculate size...
SHA1 hash: 51f9bca295be9c2e1dee77d093ce0fcf3fc93450
SHA256 hash: 857ccc14c1ddef51ad65a966408a6a5113d49355cc1bffeaa3ff3529b3137476
Encoding unsigned superblob...
Updating load commands...
Updating __LINKEDIT segment...
Updating LC_CODE_SIGNATURE load command...
Updating code slot hashes...
Signing binary...
SHA1 hash: 51f9bca295be9c2e1dee77d093ce0fcf3fc93450
SHA256 hash: e5b8a89e9778a3b59804de36a8c900fa6954db008bac4528031f847a3d2a1209
Encoding signed superblob...
Writing superblob to MachO...
Applied CoreTrust Bypass!

liqingshan@192 RootHelper % codesign -d /Users/liqingshan/Desktop/TrollStore/RootHelper/.theos/obj/trollstorehelper 
Executable=/Users/liqingshan/Desktop/TrollStore/RootHelper/.theos/obj/trollstorehelper

It can be observed that the temporary file was not successfully signed


liqingshan@192 RootHelper % codesign -d /Users/liqingshan/Desktop/TrollStore/_build/TrollStore.app/trollstorehelper 
/Users/liqingshan/Desktop/TrollStore/_build/TrollStore.app/trollstorehelper: code object is not signed at all

liqingshan@192 RootHelper % ../Exploits/fastPathSign/fastPathSign --entitlements entitlements.plist /Users/liqingshan/Desktop/TrollStore/_build/TrollStore.app/trollstorehelper
Error while signing: Error Domain=NSOSStatusErrorDomain Code=-67045 "(null)"
Failed adhoc signing (200) Continuing anyways...
Extracted best slice to /tmp/KSHxNv
Applying CoreTrust bypass...
Applying App Store code directory...
Adding new signature blob...
Updating TeamID...
TeamID set to T8ALTGMVXN!
Doing initial signing to calculate size...
SHA1 hash: 51f9bca295be9c2e1dee77d093ce0fcf3fc93450
SHA256 hash: 857ccc14c1ddef51ad65a966408a6a5113d49355cc1bffeaa3ff3529b3137476
Encoding unsigned superblob...
Updating load commands...
Updating __LINKEDIT segment...
Updating LC_CODE_SIGNATURE load command...
Updating code slot hashes...
Signing binary...
SHA1 hash: 51f9bca295be9c2e1dee77d093ce0fcf3fc93450
SHA256 hash: e5b8a89e9778a3b59804de36a8c900fa6954db008bac4528031f847a3d2a1209
Encoding signed superblob...
Writing superblob to MachO...
Applied CoreTrust Bypass!

liqingshan@192 RootHelper % codesign -d /Users/liqingshan/Desktop/TrollStore/_build/TrollStore.app/trollstorehelper
Executable=/Users/liqingshan/Desktop/TrollStore/_build/TrollStore.app/trollstorehelper

I found that the final file TrollStore.tar was not successfully signed, and I am not sure if it is a problem with Theos

Current Behavior?

Failed to sign successfully

Possible Solution?

Steps to Reproduce

No response

TrollStore Version

TrollInstaller

iOS/iPadOS version

iOS 16.1

iDevice Model

ipad9

Other info of your environment

No response

FaSxxf avatar Dec 16 '25 03:12 FaSxxf

I created the simplest C file, but still failed to sign it

liqingshan@192 RootHelper % echo 'int main(){return 0;}' > test.c
liqingshan@192 RootHelper % clang -o test test.c                 
liqingshan@192 RootHelper % chmod 777 ./test                                                            
liqingshan@192 RootHelper % ../Exploits/fastPathSign/fastPathSign --entitlements entitlements.plist test
AdHoc signed file!
Extracted best slice to /tmp/u8o33Y
Applying CoreTrust bypass...
Applying App Store code directory...
Adding new signature blob...
Updating TeamID...
TeamID set to T8ALTGMVXN!
Doing initial signing to calculate size...
SHA1 hash: 51f9bca295be9c2e1dee77d093ce0fcf3fc93450
SHA256 hash: dc140819da89a443f0239cbc4981b1da2ba23e2dc8d1d34a91e8e5afb1b66a73
Encoding unsigned superblob...
Updating load commands...
Updating __LINKEDIT segment...
Updating LC_CODE_SIGNATURE load command...
Updating code slot hashes...
Signing binary...
SHA1 hash: 51f9bca295be9c2e1dee77d093ce0fcf3fc93450
SHA256 hash: 9bf90666d09eab733f1acc998243c602d3ff60bfb49a6d80725e38381f939642
Encoding signed superblob...
Writing superblob to MachO...
Applied CoreTrust Bypass!
liqingshan@192 RootHelper % codesign -dvvv ./test                                                       
./test: code object is not signed at all
liqingshan@192 RootHelper % 

FaSxxf avatar Dec 16 '25 08:12 FaSxxf

please switch macos version

FaSxxf avatar Dec 17 '25 01:12 FaSxxf