2017-09-11 5 views
0

Ich habe Xcode 9.0 und iPhone 7 in meiner Entwicklung verwendet. In meinem .travis.yml ich hinzugefügt:Warum kann Travis meine Tests nicht ausführen?

language: swift 
osx_image: xcode9 
script: 
- xcodebuild clean test -project BullsEye.xcodeproj -scheme BullsEye 
-destination "platform=iOS Simulator,name=iPhone 7,OS=11" CODE_SIGN_IDENTITY="" 
CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO -quiet 

aber wenn ich es in travis laufen bekomme ich diese:

The command "xcodebuild clean test -project BullsEye.xcodeproj -scheme BullsEye 
-destination "platform=iOS Simulator,name=iPhone 7,OS=11" CODE_SIGN_IDENTITY="" 
CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO -quiet" exited with 70. 

oder mit 66.

Ich habe mein Schema Shared in Xcode gemacht.

Was ist das Problem und wie kann ich es beheben?

In logs bin ich auch immer:

Ineligible destinations for the "BullsEye" 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 } 

und

xcodebuild: error: Unable to find a destination matching the provided destination specifier: 
    { platform:iOS Simulator, OS:11, name:iPhone 7 } 
The requested device could not be found because no available devices matched the request. 
+0

können Sie einen Link zum vollständigen Anmelden auf travis-ci.org teilen? Wenn es privat ist, können Sie das Protokoll https://gist.github.com kopieren/einfügen? Vielen Dank! –

+0

@DominicJodoin https://Travis-ci.org/orkhanalizade/BullsEye es ist hier –

Antwort

1

bei your latest build log Sehen, wird folgende Fehlermeldung

xcodebuild: error: Unable to find a destination matching the provided destination specifier: 
    { platform:iOS Simulator, OS:11, name:iPhone 7 } 

scheint darauf hinzudeuten, dass Sie nicht Verwenden Sie einen gültigen -destination Wert.

Tatsächlich glaube ich, dass 11 kein akzeptierter Wert für OS ist. Können Sie stattdessen mit 11.0 versuchen? d.h. -destination "platform=iOS Simulator,name=iPhone 7,OS=11.0"

Ich habe auch eine PR here eingereicht.

Verwandte Themen