5

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

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 正常运行。

4

2 回答 2

1

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

于 2015-04-07T15:16:43.717 回答
1

我必须在我们的构建服务器上更新我的 Xcode 版本。

当您转到 Xcode-> Preferences...->时,您还可以检查哪些模拟器可用Components

确保给定的 SDK 版本在此处可用。在你的情况下,它会是iOS 7.1 simulator. 如果它不可用,请点击下载按钮。

于 2017-10-31T13:27:30.593 回答