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
0
votes
0 answers

Running deep links / universal links on an iOS device

Can I access something like the xcrun simctl openurl booted "http://my_url" or adb shell am start -a android.intent.action.VIEW \ -c android.intent.category.BROWSABLE \ -d "http://my_url" com.myApp inside an emulator / simulator. Is there…
0
votes
1 answer

"xcrun extractLocStrings" suddenly stopped working

I have 2 laptops and run the same script on both of them: find ./ -name '*.swift' -print0 | xargs -0 xcrun extractLocStrings -o ./en.lproj The "first" where script is not working macOS version: 12.3.1 (21E258) XCode Version 13.4.1 (13F100) And…
Nuzhdin Vladimir
  • 1,714
  • 18
  • 36
0
votes
1 answer

What does inactive developer path mean in VS Code?

So I am trying to learn C++ and I am using VS Code as my editor, and when I write my code and attempt to compile in the terminal, I get an error message saying "xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),…
Lemons34
  • 3
  • 4
0
votes
1 answer

Alttool Manual Notarisation of App - The operation couldn’t be completed. Is a directory Is a directory (21)

I'm having issues with notarizing the app directly in Xcode.Even though i have acceped all agreements and updated the required banking info,the upload step get stuck at authenticating with Apple Service.So i'm trying to use alttool to notarize my…
techno
  • 6,100
  • 16
  • 86
  • 192
0
votes
1 answer

How to Change Default 'clang++' Include Directory Search Paths

I am building Octave from source on OS X 10.11.7 with clang. clang is bringing in /usr/local/include/math.h which is causing compiler errors: In file included from libinterp/dldfcn/__delaunayn__.cc:54: In file included from…
dbl001
  • 2,259
  • 8
  • 39
  • 53
0
votes
1 answer

How can I get devices from xcrun xctrace list devices using python?

I would like to get some sort of list of devices returned from the xcrun xctrace list devices command, but am having trouble due to subprocess not returning a string. An example output from the commandline from the command would be: >xcrun xctrace…
user391339
  • 8,355
  • 13
  • 58
  • 71
0
votes
1 answer

Rmarkdown won't knit to HTML xcrun: error on mac

I recently switched from a pc to a macbook (running big sur 11.0.1) and just installed R studios yesterday. I'm working in R and I get this error when I try to knit to an HTML: xcrun: error: invalid active developer path…
DMM
  • 11
  • 3
0
votes
1 answer

xcrun from XCTest on iOS

Is it possible to execute an xcrun simctl command from XCTest when targeting iOS? This is possible when the target is macOS via Process(), but that doesn't exist for an iOS Test Host. And trying to dynamically load the class crashes the bundle.
Joe Masilotti
  • 16,815
  • 6
  • 77
  • 87
0
votes
0 answers

How to enable iOS Simulator -> Device -> Screenshot action

I know I can take a screenshot with CMD+S, but I think that the Device -> Screenshot task for the iOS Simulator triggers the UIApplication.userDidTakeScreenshotNotification notification. However, his "Screenshot" action appears disabled for the…
regina_fallangi
  • 2,080
  • 2
  • 18
  • 38
0
votes
1 answer

How can I configure Travis CI so that `xcrun` can find `altool` (xcode 11.3 on Mac OS X 10.14)?

When running my build for notarization on Travis CI I get the following error: xcrun: error: unable to find utility “altool”, not a developer tool or in PATH You can find complete build output here:…
David Murdoch
  • 87,823
  • 39
  • 148
  • 191
0
votes
1 answer

Allow strings larger than 2000 characters to be passed to iOS App via xcrum simctl openurl command

I have came across the following issue and I am not sure how to get around it: I am passing html content to an iOS app via the xcrun simctl openurl command. Command looks like the following: xcrun simctl openurl
morrrowgi
  • 171
  • 3
  • 10
0
votes
1 answer

xcodebuild archive is failing when upgrading to ios 13

I am trying to use xcodebuild to create an ipa of my iOS app. These are the commands my script is running xcodebuild build \ -project AirQuality.xcodeproj \ -scheme "Air Quality - Development" \ -derivedDataPath…
GBreen12
  • 1,832
  • 2
  • 20
  • 38
0
votes
1 answer

Error: Can't find a simulator to match with "iPhone 6s"

Detox was working fine as expected a couple of weeks ago - i've not updated anything to my knowledge and now I keep getting the following error when trying to test (it builds fine): Error: Can't find a simulator to match with "iPhone 6s", run 'xcrun…
smj2393
  • 1,929
  • 1
  • 23
  • 50
0
votes
2 answers

Can't upload .ipa file: Communication error. Please use diagnostic mode to check connectivity

I'm trying to upload an .ipa file generated with expo. The Application Loader is no more, so the only way to do this is to use command line. Here is what I do: xcrun altool --upload-app --type ios -f…
stkvtflw
  • 12,092
  • 26
  • 78
  • 155
0
votes
3 answers

xcrun usdz_converter xcode11 not working. how can I fix the issue?

Even after updating the directory: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer And under xcode/preferences -> command line tools is set to "xcode 11.0 (11a420a)", I am still unable to run usdz_converter. Here's the error…
jorgegvgio
  • 9
  • 1
  • 2