我遇到了Travis構建和測試我正在開發的新ios應用程序的問題。Travis未能在xcode8上啓動模擬器
language: objective-c
os: osx
osx_image: xcode8
before_install:
- pod repo update > /dev/null
- pod update
- gem install xcpretty
script:
- xcodebuild clean test -workspace project.xcworkspace -scheme project -destination "platform=iOS Simulator,name=iPhone 6" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
這是我.travis.yml每次我運行它特拉維斯讓我這個錯誤:
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ platform:iOS Simulator, OS:latest, name:iPhone 6 }
Ineligible destinations for the "project" scheme:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Generic iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Generic iOS Simulator Device }
The command "xcodebuild clean test -workspace project.xcworkspace -scheme project -destination "platform=iOS Simulator,name=iPhone 6" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO" exited with 70.
我也試圖把模擬器的ID具有相同的結果。 請注意,同樣的xcodebuild命令在我的工作區中沒有任何問題。
嘗試'-sdk iphonesimulator -destination 「OS = 10.0,名稱= iPhone 7」' – Paulw11
不還是一樣的錯誤。 –