为什么Travis无法运行我的测试?

时间:2017-09-11 13:53:07

标签: ios xcode continuous-integration travis-ci

我在开发中使用了Xcode 9.0和iPhone 7。 在我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 我添加了:

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.

但是当我在travis中运行时,我得到了这个:

66

Shared

我在Xcode中制作了我的方案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 }

问题是什么,我该如何解决?

在日志中我也得到了:

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.

def butter_bandpass_prep(lowcut, highcut, fs, order=5):
    """Butterworth bandpass auxilliary function."""
     nyq = 0.5 * fs # Minimal frequency (nyquist criterion)
     low = lowcut / nyq
     high = highcut / nyq
     b, a = sp.signal.butter(order, [low, high], btype='band')
     return b, a

def butter_bandpass(src, lowcut, highcut, fs, order=5):
    """Butterworth bandpass filter."""
    b, a = butter_bandpass_prep(lowcut, highcut, fs, order=order)
    dst = sp.signal.filtfilt(b, a, src)
    return dst

1 个答案:

答案 0 :(得分:1)

查看your latest build log,出现以下错误消息

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

似乎表明您没有使用有效的-destination值。

确实,我认为11不是OS的可接受值。您可以尝试使用11.0吗?即-destination "platform=iOS Simulator,name=iPhone 7,OS=11.0"

我还提交了一份公关here