Xcode Server error - exportArchive: no applicable devices found

I set up Xcode Server with a bot and it seems to work as expected but everytime I get a warning as follows :


Bot Issue for xxappxx (build service warning)
Integration #179 of xxappxx
Open in Xcode: xcbot://(null)/botID/216262604b43a4700a661fffc9000596/integrationID/8456bccb17577028145f624eb0e63544
Assertion: exportArchive: No applicable devices found.
File: (null):(null)
Introduced 5 integrations ago


Does anyone ever encountered this problem and know how to fix it ?

Replies

I'm running into the same problem after upgrading to Server 5.2 and Xcode 8.0 (App Store release)


** ARCHIVE SUCCEEDED **




$ /usr/bin/xcrun xcodebuild -exportArchive -archivePath /Users/bots/Library/Caches/XCSBuilder/Integration-e087274ca7652eadd53a217a46030633/FightClub-E2E.xcarchive -exportPath /Users/bots/Library/Caches/XCSBuilder/Integration-e087274ca7652eadd53a217a46030633/ExportedProduct -exportOptionsPlist /Users/bots/Library/Caches/XCSBuilder/Integration-e087274ca7652eadd53a217a46030633/ExportOptions.plist -IDEPostProgressNotifications=YES -DVTAllowServerCertificates=YES -DTDKProvisioningProfileExtraSearchPaths=/Library/Developer/XcodeServer/ProvisioningProfiles


2016-10-17 18:57:01.501 xcodebuild[46499:454383] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/zg/1rwzpfh97750q28x7_8p03zc0000gq/T/APPNAME_2016-10-17_18-57-01.500.xcdistributionlogs'.
1.2.840.113635.100.1.61
1.2.840.113635.100.1.61
1.2.840.113635.100.1.61
1.2.840.113635.100.1.61
2016-10-17 18:57:18.851 xcodebuild[46499:454383] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7fdd2da94260>: 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 **


This happens with Xcode 8.0, and Xcode Server 5.2, on both El Capitan and Sierra.

Both on an upgraded from Server 5.1.5 server and a newly installed Xcode Server 5.2.


Earlier (yesterday) on the fresh install server I saw the message:

$ sudo /usr/bin/xcrun xcscontrol --list-devices
Error listing devices: Could not perform request because the database produced an error: error happened in your connection


However, as of today I get a list of devices printed properly. On the upgraded server, we never saw this error.

Now that the error is gone, we still cannot get past the "No applicable devices found." error.


Any help would be appreciated.

I have met exactly the same issue at xcode CI, El Caption, Xcode 8.0

It is ridiculous that every time the xcode server update the CI is broken.

Same here, but only in an older project, the new ones all work properly. Did anyone find out the trick?

I was using rvm in our CI and when rvm's ruby is used, xcode is not getting proper gem I suppose. So using system ruby worked. So I guess we should use system ruby than our own ruby to easily fix this.


Following worked for me:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" && rvm use system

I am having exactly the same problem on a xcode server. I tried updating CFPropertyList to the latest version, change ExportOptions.plist (with bitcode without bitcode blabla) everytime I get this stupid error message. I do only have the system ruby version installed nothing else. All is done like the xcode server documentation says. This is really stupid. Does anybody have an idea what's going wrong here?