【发布时间】:2016-10-04 13:06:30
【问题描述】:
我使用这个命令从终端运行我的 xcode build ui 测试:
xcodebuild -workspace test.xcworkspace \
-scheme "test" \
-destination 'platform=iOS Simulator,name=ipad Air' \
test
但最近我从 xcode 7.3 迁移到 xcode 8
我使用来自
的 swift 2.3use swift legacy version
来自构建设置选项。
但是当我使用该命令时它显示错误并且它不运行 ui 测试。
它工作正常,如果我不使用命令行运行测试,我的意思是直接从项目中运行,它运行 xcode ui 测试并且终端命令适用于 xcode 7.3 非常好
错误是
error: filename "file.swift" used twice:
filenames are used to distinguish private declarations with the same name
请帮助我如何解决问题。
【问题讨论】:
标签: xcode macos osx-elcapitan xcode8 xcode-ui-testing