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
2
votes
1 answer

Unable to execute /usr/bin/xcrun simctl install... when deploying a Delphi app on iOS simulator

I'm trying to set up an environment for releasing iOS apps. On my Windows PC I use RAD Studio 10.2 Update 3 and I created a new Delphi app from one of the samples. On my Mac I have XCode 8.2, iOS 10.0 Simulator, PAServer 19.0 (running). In RAD…
bluish
  • 26,356
  • 27
  • 122
  • 180
2
votes
1 answer

xcode-select error malformed developer path

I'm trying to compile a program in D on a 2011 Macbook Air using DMD and I am getting this strange error at the command line. xcode-select: error: malformed developer path ("/Library/Developer/CommandLineTools") --- errorlevel 1 Before this error,…
Jonathan Wilbur
  • 1,057
  • 10
  • 19
2
votes
1 answer

xcrun error domain=FBSOpenApplicationErrorDomain, code=1

I'm trying to build an app via the command line, using these commands: xcodebuild PRODUCT_BUNDLE_IDENTIFIER=com.myapp \ PROVISIONING_PROFILE="XXXX-XXXX-XXXX-XXXX-XXXX" \ CUSTOM_URL="http://mycustomurl.com" \ -project AppName.xcodeproj \ -scheme…
Mirko
  • 165
  • 2
  • 12
2
votes
2 answers

Open apps using node.js spawn

I'm trying to do a little application with node.js that would run on mac and execute some commands. I've successfully used spawn to run command lines such as xcodebuild, but xcrun doesn't seems to work when I try to open the iOS Simulator. I can…
2
votes
0 answers

Starting iOS simulator from command line fails with error code 60

I'm trying to boot an iOS simulator from the command line using the following command: xcrun simctl boot 81C46931-BFAB-4669-87FC-9E45E4634196 Unfortunately this fails with the following error: An error was encountered processing the command…
Dominic Jodoin
  • 2,538
  • 18
  • 21
2
votes
1 answer

Code sign validation failing during xcodebuild and Failed to read entitlements for xcrun

I have tried every available solution over here and on the internet. I am trying to automate the iOS build process, and the clean, build and archive process succeed with these 5 warnings (errors) failing code sign validation. warning: The…
DAR
  • 106
  • 1
  • 10
2
votes
1 answer

How to reference current dir from a terminal command

How do I reference the current dir from a terminal command: xcrun -sdk iphoneos PackageApplication -v "[current dir]/target/My App.app" -o "[current dir]/target/MyApp.ipa" [current dir] = how do I get this value? So basically I don't want to type…
TheLearner
  • 19,387
  • 35
  • 95
  • 163
1
vote
1 answer

Using new Swift regex from xcrun

Why am I not seeing the new Swift regex stuff when I call Swift via xcrun? Example: ~/Desktop/test.swift: let x = /1/ // totally legal in an iOS or macOS project At the command line: % xcrun swift…
matt
  • 515,959
  • 87
  • 875
  • 1,141
1
vote
1 answer

Why is xcrun returning 'missing Info.plist'?

I am trying to upload a mac app to the Apple store but xcrun altool gives the following error: Error: ...The package is missing an Info.plist or the CFBundlePackageType is not ‘APPL’ or ‘FMWK’... The app bundle contains Info.plist with the…
toconn
  • 804
  • 6
  • 15
1
vote
0 answers

xcrun notarytool fails with missing keychain item

I am using xcrun notarytool store-credentials to set my credentials for the notarization process of my executable. I use the command below to store the credentials: %xcrun notarytool store-credentials --apple-id $APPLE_ID_USER \ …
HelloWorld
  • 2,392
  • 3
  • 31
  • 68
1
vote
0 answers

Remove uploaded .ipa file from Apple App Store after receiving ITMS-90732 Error

I uploaded a zipped version of my iOS app binary .ipa file using the following altool command: xcrun altool --notarize-app --primary-bundle-id --username --password --file And received…
Pigpocket
  • 449
  • 5
  • 24
1
vote
0 answers

Unable to validate when using altool validate-app after upgrade to Big Sur

We have several iOS apps and before uploading them to the appstore we validate them with xcrun altool --validate-app. This works fine on all apps with Catalina but we have (at least) one app that will not validate on Big Sur while the other apps…
xcoder
  • 31
  • 4
1
vote
0 answers

How to upload application in MacOS Apple Store

I want to publish an Java application into Apple Store. The apple documentation recommends to use $ xcrun altool --validate-app -f file -t platform -u username [-p password] [--output-format xml] $ xcrun altool --upload-app -f file -t platform -u…
DbSchema
  • 413
  • 5
  • 16
1
vote
1 answer

unable to validate your application. We are unable to create an authentication session

xcrun altool --notarize-app -f “xxx.pkg" --primary-bundle-id "com.xxx.xxx” --username “xxx” --password “xxx” I specified correct username and app specific password. The above command giving me below error, if anybody faced similar issue please let…
Moni
  • 19
  • 5
1
vote
1 answer

How to get the version of the app installed in the simulator from terminal

Is there command to get the version of the app installed in the simulator, I am looking for any xcode commands or any other command through which i can fetch the app version
Love
  • 125
  • 2
  • 13