Questions tagged [xcrun]

xcrun provides to locate or invoke ios developer tools from the command-line to support multiple Xcode tool chains.

xcrun provides a means to locate or invoke developer tools from the command-line, without requiring users to modify Makefiles or otherwise take inconvenient measures to support multiple Xcode tool chains. The tool xcode-select is used to set a system default for the active developer directory, and may be overridden by the DEVELOPER_DIR environment variable (see ENVIRONMENT). The SDK which will be searched defaults to the boot system OS SDK, and can be specified by the SDK-ROOT SDKROOT ROOT environment variable or the --sdk option (which takes precedences over SDKROOT). When used to invoke another tool (as opposed to simply finding it), xcrun will provide the absolute path to the selected SDK in the SDKROOT environment variable. See ENVIRONMENT for more information.

153 questions
356
votes
12 answers

How do I fix the xcrun unable to find simctl error?

I have Xcode 6.2 Beta. Attempting xcrun simctl in terminal yields xcrun: error: unable to find utility "simctl", not a developer tool or in PATH
alexander.sivak
  • 4,352
  • 3
  • 18
  • 27
303
votes
13 answers

xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist

I'm having xcode issues when I try to use brew and git: xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select --switch path/to/Xcode.app to specify the Xcode that you wish to use for…
devB78
  • 11,894
  • 3
  • 14
  • 14
141
votes
22 answers

Better way of incrementing build number?

I have been using a shell script as part of my Xcode build process to increment the build number within the plist file, however it's making Xcode 4.2.1 crash frequently (with an error about the target not belonging to a project; I'm guessing the…
trojanfoe
  • 120,358
  • 21
  • 212
  • 242
88
votes
11 answers

Invalid active developer path on MAC OS X after installing Ruby

I get this error: xcrun: error: invalid active developer path (/Applications/Xcode.app), missing xcrun at: /Applications/Xcode.app/usr/bin/xcrun This solution works, but the error occurs again after closing my terminal and reopening it; I then…
David Lambl
  • 1,623
  • 2
  • 12
  • 13
67
votes
5 answers

change xcrun developer path for Android Studio/IntelliJ

I'm using GIT and am trying to push my code and getting the following error when using the Terminal. I don't use XCode, I'm using Android Studio. The command I tried using was: git branch Networking Error: xcrun: error: invalid active developer…
Stillie
  • 2,647
  • 6
  • 28
  • 50
54
votes
7 answers

Can an Xcode .mobileprovision file be 'installed' from the command line?

I'm trying to automate the process of building apps for our clients using bash scripts running on a Mac Mini Server (OSX 10.7). My script is based on the spectacularly useful script from github originally posted at…
Ben Clayton
  • 80,996
  • 26
  • 120
  • 129
37
votes
10 answers

Xcode: iPhone app codesign error

When building a new iPhone app in Xcode, I'm getting this error: codesign error: code signing identity 'iphone developer' does not match any code-signing certificate in your keychain. once added to the keychain, touch a file or clean the…
Gabe Hollombe
  • 7,847
  • 4
  • 39
  • 44
33
votes
2 answers

Clean IOS xcode target in command line

I am building/running an IOS app from command line with following commands: xcodebuild -sdk "${TARGET_SDK}" -xcconfig "${CONFIG_FILE_PATH}" -configuration Release /usr/bin/xcrun -sdk "${TARGET_SDK}" PackageApplication -v…
clint
  • 1,786
  • 4
  • 34
  • 60
26
votes
1 answer

Git doesn't work after upgrading Mac OS X El Capitan

Git doesn't work after upgrading Mac OS X El Capitan. After installing El Capitan, I have this error when I'm doing a git command: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at:…
Kevin
  • 4,823
  • 6
  • 36
  • 70
26
votes
4 answers

OSX 10.8 xcrun (No such file or directory)

When executing gem install jekyll on OSX 10.8 with the standalone Command Line Tools package from Apple's Developer site installed (no Xcode), i run into the following error: Building native extensions. This could take a while... ERROR: Error…
Lukas Grebe
  • 1,844
  • 4
  • 16
  • 17
24
votes
3 answers

missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Failed to clone nvm repo

** curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash ** When I run this code on my Mac I got an error crun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: …
arpan45
  • 301
  • 1
  • 2
  • 10
24
votes
5 answers

git push xcrun: error: active developer path does not exist

i recently deleted xcode 6 beta 3 and installed xcode 6 beta 6 when i entered gitpush in the terminal this happened xcrun: error: active developer path ("/Applications/Xcode6-Beta3.app/Contents/Developer") does not exist, use xcode-select --switch…
user02620
  • 349
  • 1
  • 2
  • 6
22
votes
2 answers

xcrun: Error: failed to exec real xcrun. (No such file or directory)

I've upgraded OSX Lion to Mountain Lion and reinstalled the Command Line Tools (as the upgrade deleted them). From then xcrun does not work anymore. The xcode-select is set to /usr/bin, the binaries are in that directory too, but if I run xcrun with…
McLion
  • 223
  • 1
  • 3
  • 6
18
votes
5 answers

xcrun: error: invalid active developer path, problem after zsh update for flutter

I updated my shell to zsh and when I type flutter --version I get this: '''xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Failed to find the…
giannik28
  • 403
  • 2
  • 6
  • 14
18
votes
1 answer

Swift.org issue with open source swift project. Error: xcrun: error: unable to find utility "launch-with-toolchain", not a developer tool or in PATH

I am trying to Start Xcode with the custom toolchain and to be enabled to use the open source version of Swift. Steps are taken from Swift.org And I receive this error: xcrun: error: unable to find utility "launch-with-toolchain", not a developer…
Oleg Gordiichuk
  • 15,240
  • 7
  • 60
  • 100
1
2 3
10 11