Every time I started the Terminal I got:
If I typed
Last login: Wed Mar 14 10:23:52 on ttys000
-bash: export: `Tools/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin': not a valid identifier
it gave me
Uninstalling the SDK Tools didn't fix the issue, neither did reinstalling it.
Turns out the problem stemmed from when I changed the default installation directory for the SDK Tools the first time I installed them, from /Applications/SenchaSDKTools-2.0.0-Beta/ to /Applications/Sencha SDK Tools/. When I couldn't run anything (including the sencha command test here), I figured some basic startup file for Terminal had been modified, which after Googling found was probably my .bash_profile (hidden file found in /Users/UserName/ folder). I ended up being able to open it in the Terminal and found that the first line included a directory that didn't exist (/Applications/Sencha). I deleted that first line, saved the file, and Terminal was back up and running normally with Sencha Command finally working as well.
In order to edit it, I had to also include the full paths for basic commands. This didn't work:
But this did:
sudo nano /.bash_profile
(After I deleted the messed up line in .bash_profile, I didn't have to use full paths anymore.)
/usr/bin/sudo /usr/bin/nano /.bash_profile
My guess is that spaces in directory names caused the error, which would explain why it was /Applications/Sencha rather than where I had initially installed it: /Applications/Sencha SDK Tools/. It would also explain why uninstalling the first time didn't fix it.
NOTE: Possibly unrelated, but I had to use
command/sencha app create MyApp ../MyApp/
in order to generate the basic app. Is this normal?
sencha app create MyApp ../MyApp/