0

在 Travis-Ci 上测试一个新的 cocoapods 存储库时,我遇到了一个非常特殊的问题。该构建经过验证可以在我的机器上运行,唯一的外部部门是 specta 和 expecta。

构建不断失败,并出现以下错误。 [Info] Collecting info for testables... (3053 ms) run-test Tests.xctest (iphonesimulator8.0, application-test) [Warning] Tried to install the test host app 'org.cocoapods.demo.SHMKit' but failed. (160 ms) [Info] Preparing test environment failed; will retry 2 more times (0 ms) [Info] Shut down iOS Simulator... (0 ms) [Info] Stopped any existing iOS simulator jobs to get a fresh simulator. (124 ms) [Info] Reset iOS simulator content and settings at path "/Users/travis/Library/Developer/CoreSimulator/Devices/BDBABE28-2772-44DF-AC46-F449E44F4CCD/data" (361 ms) [Warning] Tried to install the test host app 'org.cocoapods.demo.SHMKit' but failed. (37 ms) [Info] Preparing test environment failed; will retry 1 more time (0 ms) [Info] Shut down iOS Simulator... (0 ms) [Info] Stopped any existing iOS simulator jobs to get a fresh simulator. (124 ms) [Info] Reset iOS simulator content and settings at path "/Users/travis/Library/Developer/CoreSimulator/Devices/BDBABE28-2772-44DF-AC46-F449E44F4CCD/data" (255 ms) [Warning] Tried to install the test host app 'org.cocoapods.demo.SHMKit' but failed. (23 ms) [Warning] Preparing test environment failed. (0 ms) -[TEST_BUNDLE FAILED_TO_START] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ There was a problem starting the test bundle: Simulator 'iPhone 4s' was not prepared: Failed for unknown reason. ━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

我用 -freshSimulator、-freshInstall、-destination 'iPhone 5,OS=7.1' 和 'iPhone 6, OS=8.0' 调整了 xctool。我创建了新方案,也遇到了同样的问题。我还将 cocoapods 和 xctool 更新为构建脚本的最新版本。

这是一个开源项目,可以在这里找到。https://travis-ci.org/mdobson/SHMKit-CocoaPods

我将不胜感激有关如何修复我的构建的任何指导!

4

0 回答 0