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

iOS, How to screen record from pc

I know that there is a screen recording feature in iOS11. I also know that there is some system command tool for iOS simulator to screen record, which is xcrun simctl io booted recordVideo --type=mp4 I found a command that I can do it for real…
John
  • 836
  • 10
  • 23
0
votes
2 answers

xcrun xcodebuild ** EXPORT FAILED ** after installing Xcode9

After installing Xcode9, xcrun xcodebuild -exportArchive started to ** EXPORT FAILED **. xcodebuild[8520:2065474] [MT] IDEDistribution: Step failed: IDEDistributionSigningAssetsStep: 0x7fd93ba747d0: Error …
thedp
  • 8,178
  • 16
  • 49
  • 87
0
votes
1 answer

How to use xcrun to compile to AppleTV?

I'm using xcrun to compile a dynamic library that I want to use in AppleTV application. Using this command, I can compile my dylib and use in OS X: ➜ logger git:(master) ✗ ls main.swift ➜ logger git:(master) ✗ xcrun swiftc -emit-library…
macabeus
  • 3,268
  • 2
  • 28
  • 49
0
votes
1 answer

Error shutting down simulator

In xcrun simctl documentation there is an entry: xcrun simctl shutdown booted - Shutdown a device Bun when I call it from command line, the simulator is not actually shut down but is freezed instead. How this could be solved? The only workaround I…
Andrii Abramov
  • 7,967
  • 8
  • 55
  • 79
0
votes
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,005
  • 7
  • 51
  • 70
0
votes
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
  • 1
  • 4
0
votes
0 answers

Xcode 6.3.2 manual build and sign gives error on installation: Application signature not valid

When I´m running my automatic (command line) build, sign and upload script for my app, an error occurs when installing the app: 'Application signature not valid'. It worked perfect for years before and stopped working 2 weeks ago (maybe due to Xcode…
stk
  • 5,687
  • 10
  • 39
  • 53
0
votes
1 answer

dyld: Library not loaded: @rpath/libxcrun.dylib referenced from xcrun

I'm relatively new to mac and now trying to setup a dev. environment for Cordova based iOS app. I'm using Yosemite 10.10.3 I've installed xcode 6.3.1 and the commandlinetools for 6.3.1, under /Applications/Xcode.app/Contents/Developer/ I can see…
Hunter
  • 1
  • 3
0
votes
2 answers

Reset iOS Simulator Content and Add Photos

For UI Automation testing, I want to have a Reset iOS Simulator and then add a few photos to it before being my automation scripts begin. When I run this: xcrun simctl erase device_UUID xcrun simctl addphoto device_UUID…
Collin
  • 6,639
  • 4
  • 23
  • 29
0
votes
0 answers

Cannot install the XCRUN built IPA on IPhone

Could anyone please tell me what I am doing wrong here ?. I am using the following command to generate the ipa from a cordova project : 'xcrun -sdk iphoneos PackageApplication -v "/Users/user/Downloads/CordovaPrj/platforms/ios/build/device/App…
msrameshp
  • 626
  • 1
  • 12
  • 33
0
votes
1 answer

Error: The application does not have a valid signature - Command Line Building IPA File

The build line: xcrun -sdk iphoneos PackageApplication -v Myapp.app -o Myapp.ipa --sign The Hash of my Signing Identity goes here --embed MyProvisioningProfile.mobileprovision It compiles into an IPA file, but when I try to transfer it to my device…
thisisnotabus
  • 1,527
  • 2
  • 11
  • 23
0
votes
1 answer

xcrun: How to add to the Header Search Path?

I want to build an existing application using xcrun under Mac OS X 10.9. The application integrates with libxml. It comes with includes such as: #include For testing, I ran: echo '#include ' | xcrun clang -xc -v…
mrcalvin
  • 2,488
  • 9
  • 17
0
votes
1 answer

xcrun doesn't embed provisioning profile into ipa

I am writing a build script for my phonegap-ios program. I am experiencing some problems during the code signing process. I use my script to build and code signing the project and generate ipa file. But the ipa failed to install to my iphone via…
Wei Zhang
  • 110
  • 1
  • 6
0
votes
1 answer

xcrun file shell script code in Mac OSX 10.7.5

I updated my /usr/bin/xcrun file on my computer running on Mac OS X Lion 10.7.5 by mistake. Can anybody send me the shell script code or any link where I can find this? FYI, I have Xcode (4.6) also installed on my system. If anybody body using MAC…
clint
  • 1,606
  • 4
  • 33
  • 55
1 2 3
9
10