【发布时间】:2017-03-16 04:41:59
【问题描述】:
我正在使用 fastlane 快照工具为应用屏幕拍摄快照。
根据 fastlane 社区,我需要跑步,
fastlane snapshot init
然后配置项目ui测试目标后,我需要运行
fastlane snapshot
但是,如果我想提供一些构建参数,例如 xcodebuild test test-only params,我该怎么做。例如,我想构建像,
xcodebuild test -workspace <path>
-scheme <name>
-destination <specifier>
-only-testing:TestBundleA/TestSuiteA/TestCaseA
-only-testing:TestBundleB/TestSuiteB
-only-testing:TestBundleC
我明白了,
fastlane snapshot --help
然后我在Snapfile中添加,
xcargs -only-testing:TestBundleB/TestSuiteB
但这会出错
(eval):36: 语法错误,意外的 tSYMBEG,期待关键字_do 或 '{' or '(' only-testing:TestBundleB/TestSuiteB
我该如何解决这个错误?
【问题讨论】:
标签: xcodebuild fastlane fastlane-snapshot