iOS Code Signing Wizard "Step 1 Upload your certificates" script fails on my machine

code-signing
ios
#1

Hi, I’m trying to set up deployment to my devices by following the instructions at https://app.bitrise.io/app/[app_id]/workflow/code_signing_wizard. I have macOS Mojave 10.14.3 (18D42), and Xcode 10.1.

I tried running this script from my terminal: bash -l -c "$(curl -sfL https://raw.githubusercontent.com/bitrise-tools/codesigndoc/master/_scripts/install_wrap-xcode.sh) --scheme='[MySchemeNameHere]' --certs-only". However, I got this error: failed to get Xcode (xcodebuild) version, error: xcodebuild -version failed, err: exit status 1, details: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance.

Here is my full output:

$ bash -l -c "$(curl -sfL https://raw.githubusercontent.com/bitrise-tools/codesigndoc/master/_scripts/install_wrap-xcode.sh) --scheme='[MySchemeNameHere]' --certs-only"
 => Creating a temporary directory for codesigndoc ...
 => Downloading version: 2.1.3
 => Downloading codesigndoc from (https://github.com/bitrise-tools/codesigndoc/releases/download/2.1.3/codesigndoc-Darwin-x86_64) to (/var/folders/s_/7c0lzyhn4qg41xwp0m72pphw0000gn/T/codesigndocXXXXXX.AB6m7jMm/codesigndoc) ...
######################################################################## 100.0%
 => Making it executable ...
 => codesigndoc version: 2.1.3
 => Running codesigndoc scan ...

failed to get Xcode (xcodebuild) version, error: xcodebuild -version failed, err: exit status 1, details: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
0 Likes

#2

Ok, I think I fixed my issue by running sudo xcode-select -s /Applications/Xcode.app/Contents/Developer/.

2 Likes

#3

Glad to hear you’ve managed to get to the bottom of this rather quickly! :wink:

0 Likes

closed #4

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

0 Likes