Xcode 8.1: xcodebuild exportArchive "No applicable devices found."
| Originator: | logan.b.jones | ||
| Number: | rdar://29052538 | Date Originated: | 01-Nov-2016 02:43 PM |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 8.1 (8B62) |
| Classification: | Other Bug | Reproducible: | Always |
We have been try to put together a more modern build script for producing an Enterprise distributable ipa. Our current system uses the ‘scrum PackageApplication’ mechanism; but this is now deprecated and has bugs with the ‘Resource Rules’ flag. The plan is to adopt an xcodebuild archive & exportArchive approach; but the exportArchive phase always produces an "No applicable devices found." error. If I import the produced build script xcarchive into Xcode and do the Enterprise export manually, then it works as expected. I put together a sample Xcode project (the default iOS template) and included a minimal build script to show this problem. Running ./build.sh will perform an xcodebuild+archive and xcodebuild+export. The export fails. The project signing & provisioning will have to be modified to match what you have available. I also included the xcdistributionlogs from a sample build. These note a failure in a ruby script (fileutils.rb); but I’m not sure if that is related to the export failure.
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!