【发布时间】:2017-06-23 19:35:25
【问题描述】:
我正在尝试使用 travis-ci.org 实现持续集成。
这是我当前的 .travis.yml 配置:
language: swift
osx_image: xcode8.3.3
xcode_project: AutomatediOSBuild.xcodeproj #3
xcode_scheme: Debug
#xcode_sdk: iphonesimulator10.0
script:
- xcodebuild -scheme AutomatediOSBuild -project AutomatediOSBuild.xcodeproj -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6s,OS=10.3.1' build test
但我在 travis 上收到以下错误:
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ platform:iOS Simulator, OS:10.3.1, name:iPhone 6s }
The requested device could not be found because no available devices matched the request.
The command "xcodebuild -scheme myProject -project myProject.xcodeproj -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6s,OS=10.3.1' build test" exited with 70.
如果我在命令行中运行:
xcodebuild -scheme myProject -project myProject.xcodeproj -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6s,OS=10.3.1' build test
我没有错误。你们中的任何人都知道为什么我会收到此错误吗?或者是否有任何解决此错误的方法?
非常感谢您的帮助。
【问题讨论】:
-
您是否与
xcrun instruments -w "iPhone 6s"或xcrun instruments -w "*"核对过可用的设备/模拟器以及您的设备/模拟器是否是其中之一?会不会是你的操作系统版本不匹配? -
您找出问题所在了吗?我遇到了同样的问题
标签: ios swift xcode8 travis-ci xcodebuild