我正在使用 calabash-cucumber 版本 0.11.3、run_loop 版本 1.0.9 运行 calabash-ios。
作为调试我们的应用程序的一部分,我们放入一个环境变量以在运行时使用。我一直在使用 xcrun 来启动应用程序:
xcrun instruments -t "Automation" -w "iPad Retina (8.1 Simulator)" myApp.app -e"myEnvVar=YES"
或者,在使用 xcode GUI 时,我会将其放在方案环境变量列表中。
使用葫芦运行时如何设置环境变量(-e)?