gpt4 book ai didi

ios - Travis 构建失败 - 原因 : The run destination iPad 2 is not valid for Testing the scheme 'UIKitPlus-Example'

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:41:13 26 4
gpt4 key购买 nike

我的 cocoapods 在运行 Travis CI 时遇到了一些问题。一切似乎都安装正确,但 xcodebuild 脚本失败

$ set -o pipefail && xcodebuild test -workspace Example/UIKitPlus.xcworkspace -scheme UIKitPlus-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c
xcodebuild: error: Failed to build workspace UIKitPlus with scheme UIKitPlus-Example.
Reason: The run destination iPad 2 is not valid for Testing the scheme 'UIKitPlus-Example'.
The command "set -o pipefail && xcodebuild test -workspace Example/UIKitPlus.xcworkspace -scheme UIKitPlus-Example -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty -c" exited with 70.

https://travis-ci.org/JamieREvans/UIKitPlus/builds/54649639

我不确定为什么会失败,因为我可以使用该方案在 iPad 2 模拟器上运行我的测试,没有任何问题。

这是 Travis 问题还是我的 Travis 脚本有误?

最佳答案

我已经设法通过向 xcodebuild 命令行添加目标来构建它,例如-destination "platform=iOS Simulator,name=iPhone 6"

关于ios - Travis 构建失败 - 原因 : The run destination iPad 2 is not valid for Testing the scheme 'UIKitPlus-Example' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29088778/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com