Skip to content

Commit ab91731

Browse files
committed
Merge pull request #35 from bitrise-io/gem_home_fix
gem_home fix
2 parents a7d2251 + fd775d0 commit ab91731

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

step.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,14 @@ eval $archive_cmd
237237

238238
#
239239
# Exporting the ipa with Xcode Command Line tools
240+
241+
# You'll get a "Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found."" error
242+
# if $GEM_HOME is set and the project's directory includes a Gemfile - to fix this
243+
# we'll unset GEM_HOME as that's not required for xcodebuild anyway.
244+
# This probably fixes the RVM issue too, but that still should be tested.
245+
unset GEM_HOME
246+
247+
#
240248
export_command="xcodebuild -exportArchive"
241249

242250
if [[ "${xcode_major_version}" == "6" ]] ; then

0 commit comments

Comments
 (0)