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
13
votes
2 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
  • 936
  • 2
  • 8
  • 22
13
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
  • 163
  • 1
  • 1
  • 9
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
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
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
  • 6,991
  • 23
  • 73
  • 138
8
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
  • 6,780
  • 6
  • 39
  • 69
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
2 answers

missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Failed to clone nvm repo

** curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash ** When I run this code on my Mac I got an error crun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: …
arpan45
  • 91
  • 1
  • 8
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,449
  • 3
  • 36
  • 45
7
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
  • 3,770
  • 2
  • 23
  • 47
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
  • 155
  • 3
  • 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
  • 2,229
  • 1
  • 17
  • 35
7
votes
6 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,035
  • 1
  • 11
  • 29
6
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
  • 6,465
  • 11
  • 47
  • 89
6
votes
1 answer

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
  • 131
  • 1
  • 6
1
2
3
9 10