问题描述
有没有人成功使用过 xcodebuild 命令 test-without-building 但没有方案/项目?
xcodebuild 的手册页有这个例子:
xcodebuild test-without-building -xctestrun MyTestRun.xctestrun -destination 'platform=iOS Simulator,name=iPhone 5s' -destination 'platform=iOS,name=My iPad'
// Tests using both the iOS Simulator and the device named iPhone 5s. Test bundle paths and other test parameters are specified in MyTestRun.xctestrun. The command requires project binaries and does not require project source code.
我想做的是自动测试应用升级。我希望能够存档应用程序和测试并自己运行它们。然后再次运行测试,但使用方案/工作区运行它们。
像这样:
我在命令中遇到的错误是:
Cannot test target “XXX” on “iPhone 12 Pro Max”: Unable to determine the executable path for XXX.xctest
我所做的是将构建产品复制到一个新文件夹中,并尝试从那里运行此命令。
test-without-building -xctestrun ./MyTarget-Debug_iphonesimulator14.4-x86_64.xctestrun -destination 'platform=iOS Simulator,name=iPhone 12 Pro Max'
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)