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
18
votes
3 answers

Set xcode "build setting" from terminal?

Is there anyway that I can change a setting in xcode without opening xcode? I have an automated xcodebuild / xcrun process going on but I need to change 1 value: Targets > Select your target > Build Settings > Code Signing Resource Rules Path add…
nizzle
  • 1,036
  • 2
  • 10
  • 23
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,607
  • 27
  • 108
  • 188
17
votes
3 answers

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
  • 324
  • 2
  • 9
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,829
  • 9
  • 59
  • 87
15
votes
2 answers

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
  • 171
  • 1
  • 1
  • 6
14
votes
6 answers

Change active Developer Path for Xcode

This question was asked before, but unresolved here. I have tried the solution here, but it doesn't solve the issue. I get this error: xcrun: error: active developer path ("/Applications/Xcode 2.app/Contents/Developer") does not exist, use…
MatrixMummy
  • 173
  • 1
  • 2
  • 9
12
votes
2 answers

Xcode 13 instruments is not a developer tool or in PATH (React native)

I recently upgraded to xcode13, before which react native app was working fine for long time. However, after switching when I run in iOS, I am getting error "instruments is not a developer tool or in PATH" on command "xcrun instruments". I tried…
Learner_Programmer
  • 1,259
  • 1
  • 13
  • 38
11
votes
2 answers

Can't generate release build for Cordova iOS App

I am using Phonegap CLI 3.1 and XCode5. I want to generate the release build for iPhone Application through command line, I have valid distribution certificate and mobile provisioning profile. I want to generate the release build totally through…
Aarush
  • 493
  • 1
  • 4
  • 12
10
votes
0 answers

How to capture video of an iPhone simulator, while showing touches or cursor?

What's the best way to capture video from an iPhone simulator, while capturing touch events and/or cursor? I've tried the Xcode tool xcrun simctl io booted recordVideo but that doesn't capture any touch events. I've also tried QuickTime screen…
Z S
  • 7,039
  • 12
  • 53
  • 105
10
votes
1 answer

xcrun command to export ipa file xcode8 for iphoneos10.0

xcrun xcodebuild -log -sdk iphoneos PackageApplication "$OUTPUTDIR/$APPNAME.app" -o "$OUTPUTDIR/$APPNAME.ipa" -sign "$DEVELOPER_NAME" -embed "$PROVISIONING_PROFILE" This is the command now i am using in xcode7.3.1. i updated xcode to 8.0 version.…
SUNiL iOS
  • 129
  • 1
  • 8
9
votes
1 answer

XCTest does not link iOS frameworks

I'm running iOS simulator unit tests on the command line using xctest. First I build the target: xcodebuild -project "build/MyApp.xcodeproj" -target "MyApp Unit Tests" -configuration "Debug" -sdk "iphonesimulator" build And then run xctest on the…
Luke
  • 7,110
  • 6
  • 45
  • 74
9
votes
7 answers

xcrun can't find Xcode path

Mac OS X 10.8.2 Xcode 4.5.2 (installed at /Applications/Xcode.app) Tried xcode-select -switch /Applications/Xcode.app After that xcode-select -print-path outputs correct path (/Applications/Xcode.app). But xcrun -find gcc fails with error xcrun:…
M.Y.
  • 1,105
  • 1
  • 11
  • 30
8
votes
2 answers

MacOS Notarization on command line unable to create authentication session

Unable to validate your application. We are unable to create an authentication session MacOS notarization on command line returning 'unsupported url' when getting status xcrun altool --notarize-app --primary-bundle-id "com.xx" --username…
rootusb
  • 161
  • 1
  • 6
8
votes
1 answer

What does bitcode_strip (xcrun) do?

Having added TwilioVideo as a Pods dependency in my iOS project, I realized that its size significantly increased (+100 Mo). After some researches, I found this thread and especially this message that advises stripping bitcode using this command via…
Rob
  • 4,123
  • 3
  • 33
  • 53
8
votes
1 answer

Launching a simulator fails with an error: No template

I am running the following command to launch iOS simulator via Xcode xcrun instruments -w 2E755803-3DFD-4722-B6B7-25498BCFF551 and it fails with Instruments Usage Error : No template (-t) specified instruments, version 7.2 (59503) usage:…
Vik
  • 8,721
  • 27
  • 83
  • 168
1
2
3
10 11