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
8
votes
1 answer

Simctl install can't find Bundle Identifier in .app when installing app in simulator

When I try to install my app in the booted simulator, like this: xcrun simctl install booted /build/iphone/build/Debug-iphonesimulator/foo.app I get the following result: An error was encountered processing the command (code=22): Failed to install…
7
votes
1 answer

How to generate JSON coverage report with Xcode 11?

I've run unit tests from the command line like this: xcodebuild \ -resultBundlePath Example.xcresult \ -workspace Example.xcworkspace \ -scheme Example \ -destination "platform=iOS Simulator,name=iPhone 8" \ test and now I'd…
pipacs
  • 1,049
  • 11
  • 25
7
votes
1 answer

Changing or removing the carrier name on the iOS simulator using xcrun simctl status_bar

As of iOS 13, SimulatorStatusMagic no longer works, but happily Apple have provided a first-party solution through simctl status_bar. However I can't find any way to remove or change the "Carrier" text: Setting --cellularMode notSupported removes…
Robert
  • 5,735
  • 3
  • 40
  • 53
7
votes
5 answers

Cordova iOS: xcrun can't find "PackageApplication" after xcode update

This morning, xcode got updated to version 8.3 on my osx building device. Since then, when I try to build my iOs app with Cordova, I get the following error at the end of the building process: [exec] [exec] ** BUILD SUCCEEDED ** [exec] [exec]…
Kickar
  • 165
  • 1
  • 4
  • 9
7
votes
1 answer

xcrun swift on command line generate :0: error: could not load shared library

My goal is to try run my Swift program like a script. If the whole program is self-contained, you can run it like: % xcrun swift hello.swift where hello.swift is import Cocoa println("hello") However, I want to go one step beyond this, and…
kawingkelvin
  • 3,649
  • 2
  • 30
  • 50
6
votes
3 answers

xcrun avgtool xcrun: error: unable to find utility "avgtool", not a developer tool or in PATH

Unable to automatically update the version number in Xcode using below command xcrun avgtool xcrun: error: unable to find utility "avgtool", not a developer tool or in PATH Tried below options Added Developer_DIR PATH in .bash_profile and…
Badrinath
  • 325
  • 1
  • 7
  • 25
6
votes
1 answer

Xcrun missing, xcode command line tool not fixing

Having an odd Mac OS issue. I'm on a mid-2015 McBkPro running High Sierra 10.13.3. Haven't coded on a new project in a while (been busy on my last projects for most of the past year); now I tried starting up a new project and well none of my…
Frenchmassacre
  • 462
  • 4
  • 12
6
votes
1 answer

Does DEVELOPER_DIR need to remain set in the environment?

I'd like to have side-by-side installations of XCode, and use the DEVELOPER_DIR environment variable to select between them. The goal for this is to use the result of xcrun -f --sdk macosx clang to determine the appropriate C compiler, and then use…
acm
  • 12,183
  • 5
  • 39
  • 68
5
votes
3 answers

VS Code C Error - Invalid Active Developer Path

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun This is the error I get in VS Code's terminal. There are error squiggles under the "#include…
user13387446
5
votes
1 answer

iphone sdk missing from xcrun how to build for iphone from command line?

I'm trying to figure how to build metal shaders for iphone os using xcrun. I have (the almost latest) Xcode 11.3.1 installed on macos 1.4 Mojave. xcrun --sdk iphoneos --show-sdk-path reports that the sdk cannot be found. I checked xcrun --sdk…
synchronizer
  • 1,955
  • 1
  • 14
  • 37
5
votes
2 answers

How to select an app to automatic upload with xcrun?

My company have more than 60 apps on the apple store (all the same base), so when we have an update, it takes a lot of times to upload all of them So i'm trying to find a way to automate the maximum I found something interesting for uploading an app…
John Smith
  • 1,194
  • 1
  • 12
  • 30
5
votes
4 answers

Failed to generate release build of cordova ios app

I am using phonegap CLI 3.1 and XCode5. I am trying to generate the build for release mode through Phonegap CLI and Xcrun. I don't want to use Phonegap Build to upload the mobileprovision or whatever the process of them. I want to do it by xcrun to…
Shashi
  • 1,165
  • 5
  • 20
  • 39
5
votes
2 answers

xcrun clang --sysroot can not find stdio.h

With Xcode 4.6, under Mac OS X 10.8.2, to compile hello.c, I issued the xcrun command recommended in xcrun gcc cannot find header files but still received the error that the header file stdio.h can not be found. $ xcrun clang --sysroot…
Greg Coats
  • 51
  • 1
  • 3
4
votes
1 answer

Is there a command to restart the Xcode iOS simulator from command line?

I have found a command to killall simulators but does not fit my needs. I need to be able to restart a particular simulator given the udid. I have tried shutdown and then boot the simulator using $ xcrun simctl shutdown $ xcrun simctl boot…
PR3DATO
  • 75
  • 1
  • 8
4
votes
1 answer

Missing xcrun ever since upgrading to Mojave while trying to use storyboard compiler without command line

I keep getting this error: /xcrun: invalid DEVELOPER_DIR path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun and I've tried xcode-select --install. I'm having no luck…
1 2
3
10 11