You have no idea how long does it takes me to make all those items checked, yes so far still one to go
As the Mac system is keep updating so does those commends it is really difficult to find those which still work and suitable for your case
So i really need to write it down
in root directory(right after open terminal)
you can use ls -la to check if the file you are looking for is existing (including hidden one of course)
And in my case the file I am looking for is .bash_profile and I am lucky enough to find it, some article will ask you to find a really strange file/etc/profile to be honest I still have no idea what does it do but editing that one will take more effort so just do it in a easy way
open -e .bash_profile
--will open the .bash_profile in an editor and you can edit and save it easily
cat .bash_profile --will just let you check the file
whenever after editing don't forget to use source ~/.bash_profile to make it work
And this is the final version of my ./bash_profile for Appium
For ANDROID_HOME if you have android studio just go to file→other settings →default project structure→ SDK location so that the AVD can work properly
PATH=$PATH:/Library/Tomcat9.0.4/bin
export JAVA_HOME=$(/usr/libexec/java_home)
export PATH=$JAVA_HOME/bin:$PATH
export ANDROID_HOME=/Users/kunwen/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
export ANDROID_SDK_ROOT=$ANDROID_HOME
网友评论