没有使用-destination标志指定的目的地,这些目的地对指定的方案有效

Adg*_*aza 5 xcode xcodebuild xcode-bots

尝试在服务器上运行应用程序时,我的集成机器人抱怨...

xcodebuild: error: No destinations were specified with the -destination flag which were valid for the specified scheme 'MyScheme'.

不确定如何处理此错误?

在崩溃之前,它会针对不同的设备进行大量搜索......

2014-05-21 14:14:22.631 xcodebuild[49977:100b] [MT] DVTDeviceSearch: Searching for device with type 'iOS Simulator', options: { OS = "7.1"; name = iPad; }, genericOnly: NO allowMultiple:NO timeout:0.000000 2014-05-21 14:14:23.134 xcodebuild[49977:100b] [MT] DVTDeviceSearch: Search found devices: ( "<DVTiPhoneSimulator: 0x7ff6fdb9a230> {\n\t\tsessionActive: NO\n\t\tlaunchService: (null)\n\t\tlaunchSucceeded: NO\n\t\tcurrentSimulatorSession: (null)\n\t\tdidExitRecursionGuard: NO\n\t\tdeviceInfo: <DeviceInfo iPad>\n\t\tsimulatedSystemRoot: <DTiPhoneSimulatorSystemRoot 0x7ff6fdb8e6f0> path=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk version=7.1 name=Simulator - iOS 7.1\n\t\tsimulatedDeviceFamily: 2\n\t\tsupportedDeviceFamilies: (\n 1,\n 2\n)\n\t\t}" )

检查服务器xcode我可以看到安装了6.1和7.0模拟器.

它也可以从xcode运行良好.

小智 1

您的日志表明它正在寻找 7.1 模拟器,而不是 7.0。将 7.1 模拟器安装到 Xcode 服务器或将部署目标降级到 7.0。