demhademha / tweak-development-guide

From complete beginner to tweak dev!
GNU General Public License v3.0
117 stars 12 forks source link

zsh:killed ./my-first-program #27

Closed k3v1nwrld closed 1 year ago

k3v1nwrld commented 3 years ago

On chapter 6 program 6.1 whenever i run ./my-first-program i get: zsh:killed ./my-first-program test

demhademha commented 3 years ago

This is a jailbreak issue. although procursus would automatically sign binaries, this is no longer the case. in order to overcome this issue, you can do either the following: • use ldid to sign your binary • create a /home directory and build everything from within there.

k3v1nwrld commented 3 years ago

I tried to sign with ldid by running ldid -S my-first-program but it didnt help.I think im doing something wrong and tried to google it but didnt find anything.

demhademha commented 3 years ago

1: download this file https://github.com/ProcursusTeam/Procursus/blob/main/build_misc/entitlements/general.xml (using either wget or curl) 2: do, ldid -Sgeneral.xml my-first-program 3: try to run the program again Let me know if this works

k3v1nwrld commented 3 years ago

Downloaded the file at /var/mobile and moved it to /tmp too but still get an error ldid

demhademha commented 3 years ago

Could you sign and run the file in the same directory - IE, build it in /var/mobile and run it in /var/mobile (without moving it to /tmp) regards

k3v1nwrld commented 3 years ago

Still get the same thing.When i used chrckra1n with procursus this worked completely fine but since i switched to taurine it requires to sign it with ldid

demhademha commented 3 years ago

try this: 1: sudo mkdir /home/username 2: sudo chown mobile:mobile /home/username 3: try to compile in that directory (/home/useranme)
CC @diatrus - can we have the ldid auto signer back...

k3v1nwrld commented 3 years ago

When i run sudo mkdir /home/test i get Mkdir: cannotcreate directory '/home/test':No such file or directory

demhademha commented 3 years ago

Sorry, use sudo mkdir -p /home/username

k3v1nwrld commented 3 years ago

Thanks it works now!