iOS Build Environment Help Center

First .command file not working on Mac

append delete shea

Firstly I transferred it via dropbox link to the Mac since I do not have a USB drive at the moment.
Once unzipped, when I try to run it it says "[file] could not be executed because you do not have appropriate access privileges".
I control clicked, went to Get Info, and I can see that the user I am logged in with has read and write priviliges. I still get the error above.
Googling the error, it says I should try running the following command in Terminal:
chmod u+x "path-to-file"
I do that and get the error:
zsh: no matches found: (step 1, Mac).command

Next I try opening the .command file in text editor, copy all the text and paste in Terminal and run. No luck either.

Any ideas what I am doing wrong here?

Reply RSS

Replies

append delete #1. Pierre-Marie Baty

Hello

Next time please provide the requested info.

Your zip tool didn’t store the execution flag for this script because these flags don’t exist on Windows where you zipped it. The chmod command is the right thing to do here to fix the problem. As the file name contains spaces, it must be enclosed within quotes on the Terminal command line. If you don’t, the Terminal will split your command at each space and consider the individual bits as separate file names (which don’t exist). So type :

%
chmod u+x "Migration Assistant (step 1, Mac).command"
%

Notice the double quotes. And open the terminal at the same location where the file is (or provide its full path between the quotes).

append delete #2. shea

Sorry for the lack of info, I am in the middle of a serious crunch.
Your instructions helped, thank you very much.

append delete #3. Pierre-Marie Baty

You’re welcome. Have a great day

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Moderators: Pierre-Marie Baty