我正在尝试为iOS应用程序运行Appium,但是指向仪器的路径似乎是无效的。如何设置?有没有我应该使用的环境变量?或者一些争论?即使我可以在源代码中更改这一点,它对我也是有用的:)
以下是我从Appium收到的日志的相关部分:
info: instruments is:
info: [INSTSERVER] Instruments socket server started at /tmp/instruments_sock
info: Spawning instruments with command: -t /usr/local/lib/node_modules/appium/app/uiauto/Automation.tracetemplate /var/folders/rd/z5t93lfj0cx0wm2_hqmthnkr0000gn/T/TestApp.app -e UIASCRIPT /usr/local/lib/node_modules/appium/app/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments/谢谢!
发布于 2013-08-26 17:43:40
好的,在代码中进行了一些挖掘之后,似乎Appium通过使用命令xcrun -find instruments实现了它的“工具”路径。
xcrun本身有缓存,所以如果您更改/删除了xcode,那么您可能应该运行xcrun -kill-cache -find instruments
这将清除缓存,但不一定会将xcrun指向正确的路径。为此,您应该添加环境变量DEVELOPER_DIR以指向Xcode developer目录,例如/Applications/Xcode.app/Contents/Developer。
发布于 2013-11-28 01:07:40
您可以使用sudo xcode-select --switch /path/to/Xcode.app来选择您希望在appium中使用的Xcode版本。
https://stackoverflow.com/questions/18428781
复制相似问题