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
1
vote
1 answer

Mac pycharm can't install lxml package

I am facing below error from pycharm IDE: ERROR: b'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun\n' I appreciate your advice.
1
vote
1 answer

When I try to run "xcrun usdz_convert" I get an error

I updated to macOS Catalina 10.15 and Xcode 11.0. Now this command is not running now: xcrun usdz_convert I get this error even though I've updated both $PATH and $PYHONPATH variables: xcrun: error: unable to find utility "usdz_convert", not a…
1
vote
2 answers

Xcode Generate Code Coverage Report fails with Error : Error Domain=IDEFoundationErrorDomain Code=14 "Failed to merge raw profiles in directory

I am unable to generate the code coverage data when the the workspace is built with custom XCODE_CONFIGURATION_BUILD_DIR. We run the xcodebuild commands to build the workspace with a XCODE_CONFIGURATION_BUILD_DIR, so that multiple jenkins CI jobs…
durgasunil
  • 98
  • 9
1
vote
0 answers

How to get the device information (such as timezone, bluetooth status, Location information and so on) using Appium in real device

We are trying to automate iOS using Appium. In our scenario, we are getting lot of information from the device such as Bluetooth status, Battery Level, Location status, Latitude, Longitude, Device timezone and much more from the device. In Android…
alk1985
  • 53
  • 2
  • 15
1
vote
1 answer

How do I programmatically download an iOS Application's Container from a connected device

I am aware of how to download an app container of a connected iOS device (not a simulator device) using the Xcode UI (via the Devices and Simulators view). I am curious if there is a way to download a container using one of the Xcode command line…
JonnyB
  • 335
  • 1
  • 3
  • 13
1
vote
1 answer

How to screen record iOS-real device with command?

I need to screen record iOS from iMAC for the purpose of test automation. I found commands for Android and iOS-Simulator which are: adb screenrecord /sdcard/123.mp4 xcrun simctl io recordVideo --type=mp4 However, I need a command for iOS-real…
John
  • 1,139
  • 3
  • 16
  • 33
1
vote
1 answer

How to fix DVTToolchain: Failed to load toolchain using Xcode command line tools?

Anytime I run any command with xcrun or xcodebuild in the terminal it always outputs: VTToolchain: Failed to load toolchain: : Error Domain=DVTToolchainErrorDomain Code=4 "alleged toolchain directory doesn't contain ToolchainInfo.plist or…
lostAtSeaJoshua
  • 1,695
  • 2
  • 21
  • 34
1
vote
1 answer

error while run xcodebuild with xcpretty command in swift

To run xcpretty command in xcodebuild, i use the below code: import Foundation class Command{ func command(args: String...) -> Int32 { let task = NSTask() task.launchPath = "/usr/bin/env" task.arguments = args …
user2763758
1
vote
1 answer

Unable to erase contents and settings in current state: Booted

I tried to reset the contents and setting of an iOS-Simulator. I find this command line: xcrun simctl erase but i get this error: Unable to erase contents and settings in current state: Booted how is it possible to reset the contents…
emoleumassi
  • 4,881
  • 13
  • 67
  • 93
1
vote
1 answer

xcrun simctl boot / uninstall hang when simulator isn't running

I'm trying to use xcrun simctl to boot a device and uninstall an application, but it hangs on the uninstall step xcrun simctl boot xcrun simctl uninstall and it hangs on uninstall and sits forever...however, if…
VTS12
  • 452
  • 8
  • 22
1
vote
1 answer

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

The following command used to work before xcode 7 xcrun -sdk iphoneos Validation myapp.ipa or myapp.app But Now I am getting the above error. How to solve this bug ? Do we have to install any additional utility ? or Is there any way to validate…
Durai Amuthan.H
  • 31,670
  • 10
  • 160
  • 241
1
vote
1 answer

Swift - Reading piped input

I created a "Shebang" swift script. I am parsing the input arguments using Process.arguments How can I read the "piped" information in the case it was piped into the script? #!/usr/bin/env xcrun swift import Foundation for argument in…
Avba
  • 14,822
  • 20
  • 92
  • 192
1
vote
2 answers

How can I open the xcode organizer window by command line

I want to build and archive my project by command line (xcodebuild ,xcrun),and then open the xcode organizer window ,so that I can do "Submit to App Store" easily.However ,at the last step ,how can I open the xcode organizer window after archive…
zmgift
  • 11
  • 6
1
vote
1 answer

Run single xctest from command line

I have a bunch of xctest in objective-c that work fine when running from XCode6.4 But what I am trying to get is running them one by one from the command line(Terminal) for continuous integration proposes. I read in some other questions that the…
Loebre
  • 615
  • 2
  • 8
  • 23
1
vote
1 answer

Xcode build command equivalent in python

I tried the equivalent of : /usr/bin/xcrun -sdk iphoneos PackageApplication -v "$APP_OUTPUT_DIR"/"$PRODUCT_NAME".app -o "$APP_OUTPUT_DIR"/"$PLIST_IPA_NAME".ipa -embed "$PROVISONING_PROFILE_PATH" "OTHER_CODE_SIGN_FLAGS=--keychain…
Nevin Raj Victor
  • 2,924
  • 3
  • 23
  • 37