EDIT Jan 16 2017: We no longer recommend using UUIDs to start simulators. The OS X image has been updated to resolve the underlying issue, and using UUIDs is no longer necessary. Please check out this post for examples of how to choose the simulators by name.
Hey,
We’ve seen a couple of users complain about failing builds because xcodebuild
sees multiple iOS simulators.
Most likely your call to xcodebuild
looks something like this: xcodebuild ... -destination 'platform=iOS Simulator,OS=10.0,name=iPhone 6' clean build test
and you’ll see errors like this:
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
{ platform:iOS Simulator, OS:10.0, name:iPhone 6 }
The requested device could not be found because multiple devices matched the request.
Available destinations for the "Amigo" scheme:
{ platform:iOS Simulator, id:42D87249-99F2-4BC1-9180-317D268C46F7, OS:10.0, name:iPad Air }
{ platform:iOS Simulator, id:72F9B9E8-DC05-4450-B030-407D4B0968D9, OS:10.0, name:iPad Air }
{ platform:iOS Simulator, id:A77D8F4F-6D72-4DC1-BC34-BD7780F6B675, OS:10.0, name:iPad Air }
{ platform:iOS Simulator, id:AD005E41-F7E6-4C5F-B3B1-6C980E834739, OS:10.0, name:iPad Air }
{ platform:iOS Simulator, id:B9257F59-88B3-421D-B1F2-2BD92F0858D0, OS:10.0, name:iPad Air }
{ platform:iOS Simulator, id:3F3B8CE6-B349-4397-8A31-4262585B3A7F, OS:10.0, name:iPad Air 2 }
{ platform:iOS Simulator, id:6E2B1E19-6466-4328-917C-16019130FDE8, OS:10.0, name:iPad Air 2 }
{ platform:iOS Simulator, id:A141F49D-F20A-49B3-ACBF-A97F9FFB9B89, OS:10.0, name:iPad Air 2 }
{ platform:iOS Simulator, id:AC291080-8EFE-4095-8C55-B1E952EFFC36, OS:10.0, name:iPad Air 2 }
{ platform:iOS Simulator, id:F9C94E2A-F080-4AB0-93D6-A41135919D8E, OS:10.0, name:iPad Pro (9.7 inch) }
{ platform:iOS Simulator, id:BF8D8AD2-6A96-4A62-8059-A836738BB873, OS:10.0, name:iPad Pro (12.9 inch) }
{ platform:iOS Simulator, id:3184CA90-B2D4-4407-BA93-7EEAD7F88008, OS:10.0, name:iPad Retina }
{ platform:iOS Simulator, id:399AEF36-5560-4C4A-AE61-03F0A81555D0, OS:10.0, name:iPad Retina }
{ platform:iOS Simulator, id:A1EC86BA-49AB-414B-9C27-2D0F26A34A81, OS:10.0, name:iPad Retina }
{ platform:iOS Simulator, id:A70FE3C7-756F-44BF-BE46-68663FAE2EE3, OS:10.0, name:iPad Retina }
{ platform:iOS Simulator, id:D56EBD40-B853-4D56-B482-D4C40E69A3FC, OS:10.0, name:iPad Retina }
{ platform:iOS Simulator, id:075FB8BA-F088-4A16-89CF-4EA36BC25E7A, OS:10.0, name:iPhone 5 }
{ platform:iOS Simulator, id:24F6F5A0-343E-4C64-9F4C-B50D88F5E99E, OS:10.0, name:iPhone 5 }
{ platform:iOS Simulator, id:85D8FE66-1208-4478-811C-7BD1AA3B33CA, OS:10.0, name:iPhone 5 }
{ platform:iOS Simulator, id:A11ABCA4-5140-4728-B071-632A834AEC76, OS:10.0, name:iPhone 5 }
{ platform:iOS Simulator, id:C5C8EA0E-F5A8-4AF8-BBAA-385B61026A5E, OS:10.0, name:iPhone 5 }
{ platform:iOS Simulator, id:1FB033A8-440D-45F3-B95D-03E4E38B51DF, OS:10.0, name:iPhone 5s }
{ platform:iOS Simulator, id:3011ED5C-C63A-42E6-9D91-82A39DE4AD06, OS:10.0, name:iPhone 5s }
{ platform:iOS Simulator, id:45BFA4E8-C0A9-4A04-9CD0-4449FE4CF40B, OS:10.0, name:iPhone 5s }
{ platform:iOS Simulator, id:49DAC9E5-C129-497D-853E-D93BC4BB8A10, OS:10.0, name:iPhone 5s }
{ platform:iOS Simulator, id:6C9EA8B9-291B-46EB-B25F-3433372E5AF3, OS:10.0, name:iPhone 5s }
{ platform:iOS Simulator, id:153C11BB-3CA0-4FFB-8D8C-BE2F11117254, OS:10.0, name:iPhone 6 }
{ platform:iOS Simulator, id:33D34EBA-703E-4A82-8838-BE75171492E1, OS:10.0, name:iPhone 6 }
{ platform:iOS Simulator, id:53600017-30F1-428A-A16A-25C6CEDBD849, OS:10.0, name:iPhone 6 }
{ platform:iOS Simulator, id:547B1B63-3F66-4E5B-8001-F78F2F1CDEA7, OS:10.0, name:iPhone 6 }
{ platform:iOS Simulator, id:65AAA024-64D5-40B9-A122-8872E3F52EC4, OS:10.0, name:iPhone 6 }
{ platform:iOS Simulator, id:321D1CF5-2514-4897-8B09-C133602F6DB5, OS:10.0, name:iPhone 6 Plus }
{ platform:iOS Simulator, id:5525775C-A351-4986-9BF4-144A84E253AA, OS:10.0, name:iPhone 6 Plus }
{ platform:iOS Simulator, id:8925E024-A809-4391-ACA4-838F2A9D8D8D, OS:10.0, name:iPhone 6 Plus }
{ platform:iOS Simulator, id:C63728B8-89B5-4FFB-8B6E-174A2F85B47F, OS:10.0, name:iPhone 6 Plus }
{ platform:iOS Simulator, id:DFB14113-4697-4E2D-AD3F-B4FBA4B62969, OS:10.0, name:iPhone 6 Plus }
{ platform:iOS Simulator, id:5F273E3F-7B26-436D-A8EB-36460917614D, OS:10.0, name:iPhone 6s }
{ platform:iOS Simulator, id:763DC427-F2C5-4AA4-989F-2CA944FA8F04, OS:10.0, name:iPhone 6s }
{ platform:iOS Simulator, id:E8DD285C-51EE-4DB5-B326-7E927686EC36, OS:10.0, name:iPhone 6s }
{ platform:iOS Simulator, id:F08BA729-6AD2-42DF-A210-34DC8D990011, OS:10.0, name:iPhone 6s }
{ platform:iOS Simulator, id:011805C3-BB7A-4785-A313-D7AD2AF6DE49, OS:10.0, name:iPhone 6s Plus }
{ platform:iOS Simulator, id:019CFBB0-0086-44A7-AA41-D39182D9CE01, OS:10.0, name:iPhone 6s Plus }
{ platform:iOS Simulator, id:34676811-0CF8-4D4F-B460-E61A6627B927, OS:10.0, name:iPhone 6s Plus }
{ platform:iOS Simulator, id:A310FC97-435A-4026-AF85-F1216F856BA5, OS:10.0, name:iPhone 6s Plus }
{ platform:iOS Simulator, id:2D96E690-BFB5-44D5-8B22-31D9C57EDADF, OS:10.0, name:iPhone 7 }
{ platform:iOS Simulator, id:D4155E82-B930-450B-AFC7-F4800669EC65, OS:10.0, name:iPhone 7 Plus }
{ platform:iOS Simulator, id:84A11478-B7D4-4968-A626-E27CE7372148, OS:10.0, name:iPhone SE }
This is a regression in our OS X image that we will fix as soon as we possibly can, but in the meantime you can use this workaround:
xcodebuild ... -destination 'id=DFB14113-4697-4E2D-AD3F-B4FBA4B62969' clean build test
You should basically pick one of the UUIDs out of the list and simply pass that to the xcodebuild
command.
Once the new image version is deployed I will update this post, so you might want to subscribe to it so that you’ll get an E-Mail notification.
Please excuse the inconvenience,
Constantin