Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Travis无法在xcode8上启动模拟器_Ios_Travis Ci_Xcode8 - Fatal编程技术网

Ios Travis无法在xcode8上启动模拟器

Ios Travis无法在xcode8上启动模拟器,ios,travis-ci,xcode8,Ios,Travis Ci,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 pr

我对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命令,没有任何问题。

请确保
生成设置中的
iOS部署目标值设置为Travis上的osx映像支持的值


如果您的应用是全新的,iOS部署目标可能设置为10.1。Travis提供的最新图像附带Xcode 8.0,其中还没有iOS 10.1模拟器。

更新


Travis CI支持xcode8.1和iOS 10.1

Try
-sdk iphonesimulator-destination“OS=10.0,name=iphone7”
没有仍然相同的错误。非常感谢。这就解决了问题。我的问题与“错误65”有关。但那是另一个故事!;)伙计,非常感谢你。我真的花了很多时间试图解决这个问题。