簡體   English   中英

Travis無法在xcode8上啟動模擬器

[英]Travis fails to launch simulator on xcode8

我遇到了Travis構建和測試我正在開發的新ios應用程序的問題。

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,每次我運行Travis都會給我這個錯誤:

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命令在我的工作區中沒有任何問題。

確保Build Settings iOS Deployment Target Build Settings為Travis支持的osx映像的值。

如果您的應用是全新的,則iOS部署目標可能設置為10.1。 Travis提供的最新圖像Xcode 8.0,其中還沒有iOS 10.1模擬器。

更新

Travis-CI支持xcode8.1和iOS 10.1

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM