xcodebuild exportArchive: no applicable devices found

Hi,

after upgrading to Xcode 8 with iOS 10, I get this exactly this error. I am on El Capitan and using the following versions of ruby (I updated via rvm, same with 2.0.0 which is system version) and CFPropertyList:


Philipps-MacBook-Pro:mobile-sdk prakuschan$ ruby -v

ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]


Philipps-MacBook-Pro:mobile-sdk prakuschan$ gem list CF

*** LOCAL GEMS ***

CFPropertyList (2.3.3)


The xcodebuild -exportArchive command is executed in a shell script, and after a successful archive I get the following error:


** ARCHIVE SUCCEEDED **

2016-09-22 10:02:16.460 xcodebuild[10375:8369748] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/9y/r64c9wld0jx2yf3glsrzhhr00000gn/T/AppName_2016-09-22_10-02-16.456.xcdistributionlogs'.

2016-09-22 10:02:18.228 xcodebuild[10375:8369748] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7fe435f9dfb0>: Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}

error: exportArchive: No applicable devices found.

Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo={NSLocalizedDescription=No applicable devices found.}

** EXPORT FAILED **


When looking into the xcdistributionlogs, the IDEDistribution.standard.log contains the following lines at the very end:


2016-09-22 08:02:18 +0000 [MT] /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool exited with a signal 6

2016-09-22 08:02:18 +0000 [MT] ipatool JSON: (null)


I don't know if it is valuable, but this is the path to ipatool:

2016-09-22 08:02:17 +0000 [MT] Running /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool


Any help is highly appreciated. I already tried many suggestions found on google, but found no solution yet.

The ruby scripts used by xcodebuild do not support ruby 2.3.0. I recommend you use rbenv to make sure xcodebuild is only called with the MacOS pre-installed ruby version (2.0.0p648 for Sierra).

Are you sure? i have meet the same troble.

xcodebuild exportArchive: no applicable devices found
 
 
Q