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

How do you pass an argument with xcrun swift in CLI?

With Xcode installed, I would like to compile and run a .swift file in the command line. Understood, this can be done: xcrun swift sayHello.swift However, I would like to pass an argument in the command line. For example, with the following…
bucephalus
  • 89
  • 1
  • 5
1
vote
1 answer

Want to use "xcrun simctl" in Appium automation

Is there a way I can use xcrun simctl commands in my Appium automation? I have came to situation where I wanted to use uninstall and install app from simulator which is not available with appium methods. So, I am thinking if somehow I could use this…
aksdch11
  • 683
  • 6
  • 14
1
vote
1 answer

Create IPA with symbols using xcrun

I noticed a different when creating an .ipa file manually using xcrun than exporting it from xcode. The xcrun version doesn't have any symbols included with the .ipa. I was wondering what's the best way to create an .ipa with symbols (no reason not…
Nimrod Gutman
  • 1,027
  • 1
  • 10
  • 21
1
vote
1 answer

Making a CI server build all XCode targets as .ipa's

I'm looking into TeamCity and Jenkins, for a CI server. My goal is this: every time someone commits a change to our repo, the CI server builds all targets in the project as .ipa's - ready for downloading/installing on a device. I got Teamcity and…
Telstar
  • 143
  • 8
1
vote
2 answers

What is xcrun cache directory?

Where is xcrun cache stored? Also does anyone know how to use xcrun command to clean cache? I assume this is the option: -k, --kill-cache invalidate all existing cache entries
vladof81
  • 26,121
  • 9
  • 38
  • 41
1
vote
0 answers

iOS Build Automation ipa Packaging Fails with Cannot Read Format Tag

So, previously I was having a problem signing the code, but I figured that out. On my next build attempt, I received: Cannot read format tag from '/tmp/hl1WidCTwb/entitlements_rawxKfUuL3b': I am unsure what to do next, and I can't really find any…
thisisnotabus
  • 1,949
  • 3
  • 15
  • 31
1
vote
4 answers

Xcode5.1 xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH

After installing Xcode5.1 with iPhone7.1 sdk I am getting the following error when trying to package my application in the command line: xcodebuild: error: SDK "iPhoneOS7.1.sdk" cannot be located. xcrun: error: unable to find utility…
100grams
  • 3,502
  • 3
  • 30
  • 27
1
vote
0 answers

Build iOS Adhoc & Distrib Release via command line (xcrun) not working anymore (err ERROR ITMS-9000)

I use to automate the build of my Adhoc and Distrib release of my apps with a simple script: echo "***** xcodebuild: compile project" xcodebuild -target "${PROJECT_NAME}" -sdk "${TARGET_SDK}" -configuration Release…
Samuel
  • 5,439
  • 6
  • 31
  • 43
1
vote
1 answer

IOS app run with command line failing

I have created an app in IOS and want to run it with a shell script. The script has following commands:- xcodebuild -target "${PROJECT_NAME}" -sdk "${TARGET_SDK}" -configuration Release /usr/bin/xcrun -sdk iphoneos5.1 PackageApplication -v…
clint
  • 1,786
  • 4
  • 34
  • 60
1
vote
2 answers

issues with TeamCity, xcrun and single quotes

I'm using TeamCity with xcrun for CI on an IOS project. I'm currently seeing an issues while trying to execute the following command from a TC build step: -sdk iphoneos PackageApplication "Build/Release-iphoneos/%Product Name%.app" -o…
dalcantara
  • 1,613
  • 2
  • 21
  • 35
1
vote
2 answers

Always have much xcrun error in xnu installing(OSX 10.8.3)

i searched much websites to install the xnu kernel. however, there are some errors when i was installing xnu. Xcode version: 4.6 (installed command line tool) XNU version: xnu-2050.22.13 dtrace version: dtrace-96 here is the ERRORS: xcrun: error:…
Jacky Shek
  • 953
  • 1
  • 11
  • 35
0
votes
0 answers

Unable to upload the .ipa file to Test-flight

I've created a pipeline, which build the ipa file and upload it. Here's the command to upload the ipa file to test-flight: upload_to_testflight: stage: upload_to_testflight image: alpine:latest script: -…
0
votes
1 answer

Getting App Performance Data from Appium in iOS

Im curious if there is any way to get app performance data during an appium iOS test? I understand that if I were using appium testing an android app, I would be able to get app performance. Appium does not support the iOS version of this. I've…
Nick H
  • 205
  • 2
  • 9
0
votes
1 answer

Apple Notarization: An error occurred while processing the json request (1268)

Issue I'm having an issue notarizing my app using xcrun command: xcrun altool --notarize-app --primary-bundle-id "com.foobar.fooapp" --username="developer@foo.com" --password "@keychain:Developer-altool" --file ./myapp.pkg I'm checking for…
GuiFalourd
  • 15,523
  • 8
  • 44
  • 71
0
votes
1 answer

dyld: Library not loaded for (xcrun altool)

I use xcrun altool command to connect app store. But the command always fails with below errors. Environment:- $ sw_vers ProductName: Mac OS X ProductVersion: 10.15.7 BuildVersion: 19H1922 $ xcodebuild -version Xcode 11.6 Build version…
user4948798
  • 1,924
  • 4
  • 43
  • 89