Kyle-Ye/XcodeLLMEligible

[Other] No such file or directory:./eligibility_util

Closed this issue · 9 comments

Additional Information

I try to execute the commands following step 3 but it doesn’t work. Terminal could not find the eligibility utility file, which I had downloaded into the “Downloads” folder

You need to change your working directory into Downloads first.

You can use pwd in terminal to show your current working directory and use cd ~/Downloads to change it to the “Downloads” folder.

cd ~/Downloads
./eligibility_util <arguments>

If you still have issue, please reopen the issue and give me the output of the following commands.

pwd
cd ~/Downloads
pwd
ls .

/Users/nikoome/Downloads
$RECYCLE.BIN dmg files icons
desktop.ini eligibility_util stuff

Yes. Look you are in the correct working directory now. You can then use ./eligibility_util without the No such file or directory error message.

I used it. The output was "numbers expected, permission denied"

For permission issue, please refer to the step 1 and step 2

  • Disable SIP in recovery mode with csrutil disable
  • Add boot argument by sudo nvram boot-args="amfi_get_out_of_my_way=1" and reboot

You can check it by csrutil status and sudo nvram boot-args.

Note:

  1. You nee disable SIP before setting nvram boot-args
  2. After set nvram boot-args, you need to reboot to make it take effect.

image
So I checked everything but it's still not working...

I did a little googling and managed to let terminal gain access by using chmod 755. Now I wonder what stopped terminal from accessing that file...

Yeah.

"Permission denied" is probably due to missing x permission. You need to use chmod +x ./eligibility (or chmod 755 will also work)

I thought you are in the security permission here.

The error message is as following if you skip step 1 or step 2.

./eligibility_util
[1]    61672 killed     ./eligibility_util

Thanks for the reporting.

Added the FAQ section.

b03b4bf