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.

149 questions
240
votes
9 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
  • 3,034
  • 3
  • 12
  • 21
205
votes
10 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
  • 7,889
  • 3
  • 9
  • 14
135
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
  • 116,099
  • 18
  • 197
  • 233
87
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 have…
David Lambl
  • 1,611
  • 1
  • 9
  • 12
65
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…
x10sion
  • 2,391
  • 5
  • 24
  • 45
51
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
  • 75,781
  • 25
  • 117
  • 124
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,359
  • 3
  • 37
  • 43
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
  • 3,762
  • 4
  • 26
  • 55
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,624
  • 3
  • 14
  • 15
25
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,606
  • 4
  • 33
  • 55
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
  • 2
  • 6
20
votes
4 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
  • 311
  • 1
  • 2
  • 6
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
  • 13,891
  • 5
  • 52
  • 91
18
votes
3 answers

Xcode fails with "Code Signing" Error

Alternate Titles (to aid search) Xcode 'CodeSign error: code signing is required' Xcode: iPhone app codesign error /usr/bin/codesign failed with exit code 1 Jenkins fails with Code Sign error Command-line build fails with "provisioning profiles not…
Richard Stelling
  • 25,151
  • 27
  • 105
  • 186
16
votes
4 answers

Apps manually installed in simulator crashes upon load

I'm installing MyApp on the iOS simulator (Xcode 7, iOS 9) using xcrun simctl install booted MyPath/MyApp.app. This works as expected and the app is installed on the simulator. However, launching the app either manually or using xcrun simctl launch…
Aleksander Azizi
  • 9,595
  • 8
  • 57
  • 86
1
2 3
9 10