@jackysf , yes, everything is set up and works fine when I start appium from terminal. But when Appium is started by launchd, it rises that errors. I attempted to set ANDROID_HOME variable in /etc/launchd.conf , but this didn't help...
When I started appium-doctor.js as launchd agent, it's output was:
Running iOS Checks
Б°■ Xcode is installed at /Applications/Xcode.app/Contents/Developer
Б°■ Xcode Command Line Tools are installed.
Б°■ DevToolsSecurity is enabled.
Б°■ The Authorization DB is set up properly.
Б°■ Node binary found at /usr/local/bin/node
Б°■ iOS Checks were successful.
Running Android Checks
Б°√ ANDROID_HOME is not set
Appium-Doctor detected problems. Please fix and rerun Appium-Doctor.
When I run doctor from terminal:
$ node /usr/local/lib/node_modules/appium/bin/appium-doctor.js
Running iOS Checks
Б°■ Xcode is installed at /Applications/Xcode.app/Contents/Developer
Б°■ Xcode Command Line Tools are installed.
Б°■ DevToolsSecurity is enabled.
Б°■ The Authorization DB is set up properly.
Б°■ Node binary found at /usr/local/bin/node
Б°■ iOS Checks were successful.
Running Android Checks
Б°■ ANDROID_HOME is set to "/Users/username/Desktop/android-sdk-macosx"
Б°■ JAVA_HOME is set to "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home."
Б°■ ADB exists at /Users/username/Desktop/android-sdk-macosx/platform-tools/adb
Б°■ Android exists at /Users/username/Desktop/android-sdk-macosx/tools/android
Б°■ Emulator exists at /Users/username/Desktop/android-sdk-macosx/tools/emulator
Б°■ Android Checks were successful.
Б°■ All Checks were successful