2014-05-21 21 views
5

試圖在服務器上抱怨說,運行應用程序時,我的積分機器人......無目的地用其有效期爲指定方案的-destination標誌指定

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。

1

我不得不在我們的構建服務器上更新我的Xcode版本。

你也可以檢查,這模擬器是可用的,當你去 Xcode - >Preferences... - >Components

確保指定SDK版本是可以在這裏找到。在你的情況下,它將是iOS 7.1 simulator。如果它不可用,請點擊下載按鈕。