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

code object is not signed at all with Ad Hoc provisioning profile

I've created my very first HelloWorld app and it's working great with my development provisioning profile. I can run it on my device with no problem. Now I'm trying to create an ipa file to upload it to a private appstore. I have generated an ad…
Hans
  • 681
  • 1
  • 9
  • 22
3
votes
2 answers

How do I extract object files from an iOS library (on a Mac)?

I have a third party iOS library that links and runs fine in my app and in the simulator. I am trying to extract the object files from it in order to integrate it with another piece of third party software that repackages the object files with their…
Ian Terrell
  • 10,667
  • 11
  • 45
  • 66
3
votes
0 answers

UIAutomation failed to load plugin

I have a project set up such that one of target launches UIAutomation when build process finishes. Instruments is launched from Python script which eventually call the usual "xcrun instruments ..." command on bash. It worked for quite a while…
sang
  • 337
  • 3
  • 9
3
votes
3 answers

xcrun gcc cannot find header files

I want to compile a c file in OSX mountain lion. In Xcode 4.4, Preferences -> Downloads I can install command line tools to do that. However on that pane it advises me that I can use xcrun instead: Before installing, note that from within Terminal…
user1424966
2
votes
0 answers

How to get the same log output that you see in Xcode console but in terminal instead?

I'd like to view the logs from the console inside a terminal window instead. This is so that I can test Firebase Dynamic Links (because I need to run: xcrun simctl openurl booted 'My Dynamic Link Here' so I need to open an Xcode simulator and then…
nickcoding2
  • 142
  • 1
  • 8
  • 34
2
votes
1 answer

MacOS app, altool validation fails with "Could not find the main bundle or the Info.plist is missing a CFBundleIdentifier"

I have an .app which I want to distribute on the AppStore. The AppStore page is set up. I would like to upload a first build. I create a .pkg file with pkgbuild --install-location ~/Applications --component ./AppName.app ./PkgFileName.pkg This…
Á. Márton
  • 497
  • 1
  • 3
  • 21
2
votes
2 answers

Where can I find the xcresult logs from my application in an Xcode UI Test?

On running a UI Test, I can see the .xcresult file generated in ~/Library/Developer/Xcode/DerivedData. I have some NSLogs in my application that I need to display as well. Does anyone know where is the path to get the application log or xcresult…
gran_profaci
  • 8,087
  • 15
  • 66
  • 99
2
votes
1 answer

xcrun does not set rbenv shell version, .xcarchive is malformed. Fastlane, ios, react native

I am trying to deploy my ios react-native app to the AppStore, using fastlane to automate the deployment for beta testing with TestFlight. However, my fastlane beta command builds the app then fails after the archive succeeded in building. The part…
2
votes
1 answer

xcodebuild tests on a clone device

I'm trying to run a simulator, amend it's appearance, set the status bar, and finally run tests on it. # $UUID is an existing simulator in the CoreSimulator/Devices folder $ Boot up an existing simulator xcrun simctl boot $UUID # Amend appearance…
2
votes
0 answers

Is there any proper way to hide the printed JWT token from the console log when calling xcrun altool --upload-app

I am trying to use the new xcrun altool to validate and upload my .ipa file to App Store Connect in a GitHub public repository. I would like to use the new apikey version of the command because I don't like to deal with 2FA. xcrun altool…
Gergely
  • 448
  • 3
  • 13
2
votes
2 answers

Xcode 11 Upload through commandline stucks

As the application loader is now gone with Xcode 11, I tried to upload my app through the commandline tool xcrun altool. I first created an apiKey on app store connect. Then I used this command to upload my app: xcrun altool --upload-app --type iOS…
Biba
  • 1,595
  • 1
  • 12
  • 17
2
votes
1 answer

MacOS notarization on command line returning 'unsupported url' when getting status

The issue is when getting the notarization status after uploading a request It's like this, I've got an older kernel extension, with the latest mac update notarizing it will be required and I'm trying to get this done in an automated way (command…
Nico
  • 559
  • 4
  • 22
2
votes
1 answer

Command line Swift build - This copy of libswiftCore.dylib requires an OS version prior to 10.14.4

I am building a Swift project using the command line. macOS version is 10.14.5, Xcode version is 10.2.1 When trying to run the generated executable I get: "This copy of libswiftCore.dylib requires an OS version prior to 10.14.4." Running "otool -L"…
AdrianP
  • 51
  • 3
2
votes
0 answers

Code sign framework via carthage copy-frameworks fails: bundle format unrecognized, invalid, or unsuitable

I'm switching my project from CocoaPods to Carthage and I have problem with code signing. Carthage uses copy-frameworks to bundle frameworks into *.app file and cut out unnecessary architectures for simulators. Script fails after executing:…
2
votes
1 answer

Ignoring mask while recording simulator screen

I'm trying to record a video of the simulator screen using the following command: xcrun simctl io booted recordVideo --mask=ignored ~/Desktop/footage.mp4 As you can see, I specified the value ignored for the mask parameter because I want to omit…
Vin Gazoil
  • 1,942
  • 2
  • 20
  • 24