I am using Appium 1.21.0 installed on a Mac on command line and want to use Appium programmatically. Hence I used npm install -g appium to install appium.
Next I have used launchctl to start appium on reboot and keep it alive incase of a crash. When I run my robot tests for IOS, I get below error in appium logs
ESC[35m[XCUITest]ESC[39m Could not determine iOS SDK version: Command ‘xcrun’ not found. Is it installed?
I dont get this error when I manually start appium on terminal “appium --port 4730” and my tests run fine.
Q. Why cant appium get xcrun when its launched by launchctl at startup?