iOS builds are failing that were previously working

xcode

#1

2016-11-08 09:53:31.603 xcodebuild[1640:8215] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7faa3421cc10>: 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 **


#2

Try chruby system

See https://circleci.com/blog/xcode-8-1-and-more/

However you may need to do this in a single command, like chruby system && xcodebuild ..., rather then in two separate statements (I think in some cases CCI creates a new shell which is not chruby’ied).


#3

I tried to do it as one command but get this error chruby: command not found

My circle.yml is running scripts from files inside the project for example:

override:
- ./scripts/4-build.sh

When I login with SSH I can run chruby fine.


#4

xcode: 8.1 ?


#5
yes version: "8.1"

#6

I added this to my circle.yml:

dependencies:
pre:
- chruby system

In my script file I run from the circle.yml I added:
source ~/.bashrc
chruby system

Before running xcodebuild


#7