Xcode 6.2: XcodeBuild Sometimes Fails with Certian Devices

Originator:daniel_brooks
Number:rdar://20339288 Date Originated:28-Mar-2015 10:43 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6.2 (6C131e)
Classification:Serious Bug Reproducible:Sometimes
 
Summary:
When you have a lot of varying devices connected to your computer, ranging from iOS 7 to iOS 8.2, and run the following command for an application that is 8.0 only:

xcodebuild -sdk iphoneos -workspace “Test.xcworkspace" -scheme “Test” -configuration "Release" clean build archive

Sometimes this fails with “The selected device is not compatible for this run scheme” 

Steps to Reproduce:
1. Connect devices from iOS 7 to iOS 8.2 to your computer.
2. Run an Xcode build for Release 

Expected Results:
The build to succeed by selecting the appropriate device that matches the specifications.

Actual Results:
Sometimes the build runs, and sometimes it fails. It usually quite random. This is all without changing the connected devices.

Regression:
Describe circumstances where the problem occurs or does not occur, such as software versions and/or hardware configurations.

Notes:
Provide additional information, such as references to related problems, workarounds and relevant attachments.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!