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

macOS notarization: altool cannot be found

I wanted to start building a notarization automation script. However, when I try to use the 'xcrun altool' in Terminal, I get the following error: xcrun: error: unable to find utility "altool", not a developer tool or in PATH I'm on macOS 10.14.5,…
Leo Braun
  • 115
  • 5
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
  • 11,033
  • 5
  • 31
  • 60
5
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
  • 432
  • 3
  • 11
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,175
  • 11
  • 28
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,085
  • 4
  • 18
  • 38
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

how to get list of available ios simulators?

i want to list available ios simulators as in below format ( iOS version should take from JSON key ) { "name": "iPhone 5s (11.4)", "udid": "FB6B3F7F-E6CD-4F64-8EC4-6C07C86A25C8" } { "name": "iPhone 6 Plus (11.4)", "udid":…
kumara
  • 61
  • 1
  • 5
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…
4
votes
1 answer

iOS code coverage report contains files that shouldn't be in there

I have an Xcode project with two targets - the main target where the source code lives (let's call it CoolApp), and a test target for the unit tests (let's call it CoolAppTests). I also have a Git commit hook that ensures I can't commit a change if…
RuslanD
  • 285
  • 1
  • 12
4
votes
2 answers

Command line created and installed iOS .app crashes when booting inside the simulator

I'm in the middle of some proof of concept test of mine, using xcodebuild and xcrun in order to create and deploy an .app onto my ios Simulators (or even to deliver the .app directory to my final client). Whatever, the thing is I deal sucessfully…
Isaac
  • 1,655
  • 4
  • 21
  • 39
4
votes
4 answers

How to specify app id when upload to iTunesConnect using command line

Summary I`m trying to automatize my applications upload to iTunesConnect. I have at least 6 apps and all are always "ready to upload". The problem is when I try to upload an app to iTunesConnect using command line, I have the following error…
4
votes
1 answer

Xcrun is not embedding passed provisioning profile

I have "myApp.app" package that was build using command line. This app package contains distribution profile inside. Now, I need to make separate ipa package for testing (sign with development profile) so I'm executing xcrun command: /usr/bin/xcrun…
Centurion
  • 13,168
  • 31
  • 99
  • 189
4
votes
2 answers

Distribute ipa to iTunes connect from command line

I have several iPhone apps, and I've set out to do away with as much of the clicking around on iTunes connect that I have to do. One thing that I'd like to do is be able to upload an ipa to iTunes connect through the command line. How To Perform…
marklar
  • 406
  • 7
  • 21
4
votes
0 answers

Continuous Integration Code Signing issue

I've been working on setting up a TeamCity continuous integration build agent for my iOS builds and I've run into a bit of a road block. We're going to be making builds for different clients with different certificates and mobile provisioning…
Jose Ibanez
  • 3,255
  • 3
  • 25
  • 33
3
votes
1 answer

xcrun simctl status_bar not working in xcode 12

I have just upgraded my Xcode to 12 beta. I have tried to override the status bar on the simulator using this command: xcrun simctl status_bar 52B135BF-F549-4684-A959-914499AB3296 override --time '9:41' --batteryState charged --batteryLevel…
Kelvin Tan
  • 900
  • 1
  • 11
  • 31
1 2
3
9 10