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

ebelinski
Fri, 08 Feb 2019 15:16:20 +0000
Tooling Issues

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

4 posts - 3 participants