Command Line Tools

RSS for tag

Command line tools allow for easy installation of open source software or development on UNIX within Terminal.

Command Line Tools Documentation

Posts under Command Line Tools tag

174 Posts
Sort by:
Post not yet marked as solved
5 Replies
13k Views
Hi Guys, I am using the new Apple M1 Max and macOS Monterey, I am trying to install cocoa pod but getting errors like below. I tried to fix it with help of StackOverflow and many ways but no luck. Please help to resolve this issue. ERROR: While executing gem ... (Gem::FilePermissionError)   You don't have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory.
Posted
by iappvk.
Last updated
.
Post not yet marked as solved
0 Replies
128 Views
How can I add the generated numbers from the terminal to contacts as name and number. for example type in the Terminal % echo {00..99} then the terminal makes 00 01 02 03 etc. 00. I would like to save these numbers as a contact for first name and number. german : Wie kann ich die generierten zahlen vom Terminal zu Kontakten als Namen und Nummer hinzufügen bsp gib im Terminal ein % echo {00..99} dann macht der Terminal 00 01 02 03 usw. 00 diese Nummern möchte ich als Kontakt speichern für Vorname und Nummer
Posted
by Al-Arja.
Last updated
.
Post not yet marked as solved
22 Replies
21k Views
After upgrade to Big Sur git stopped working and it keeps prompting to install CLT. According to Xcode-select, see output below CLT is already installed: sbezverk@sbezverk-mac-2 ~ % sudo xcode-select --install xcode-select: error: command line tools are already installed, use "Software Update" to install updates sbezverk@sbezverk-mac-2 ~ % git sh: line 1:   772 Bus error: 10           /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk macosx -find git 2> /dev/null git: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk macosx -find git 2> /dev/null' failed with exit code 35328: (null) (errno=No such file or directory) xcode-select: Failed to locate 'git', requesting installation of command line developer tools. Any help to solve this issue would be great.
Posted
by sbezverk.
Last updated
.
Post not yet marked as solved
0 Replies
137 Views
Hi, I get these updates offers. But I don't have installed Command Line tools. sudo xcode-select -p            Password: /Applications/Xcode.app/Contents/Developer Why are there 3 different versions? And how can I remove it without set them to the ignore list? ls -la /Library/Developer/                  total 0 drwxr-xr-x   3 root  admin    96 10 Maj 11:16 . drwxr-xr-x  65 root  wheel  2080 20 Apr 17:08 .. drwxr-xr-x   8 root  admin   256 31 Mar 03:59 PrivateFrameworks
Posted Last updated
.
Post marked as solved
1 Replies
270 Views
Hi I'm finding it really difficult to integrate this tool in my Xcode project. The Fyber SKAdNetwork ID auto-updater is a tool for publishers to integrate into their build system and manage SKAdnetwork IDs into their Info.plist with each build job automatically. This will allow them to keep the Info.plist file up to date, even if some partners make changes to their IDs. Here's the link to the instructions: https://developer.fyber.com/hc/en-us/articles/360015298038-SKAdNetwork-ID-Auto-Updater I have installed the tool using Terminal but the rest is very confusing to me as I am not very familiar with some of the instructions/commands I'm being asked to do. Any help would be greatly appreciated - thank you so much in advance :) Ermes
Posted Last updated
.
Post not yet marked as solved
1 Replies
280 Views
Hi, so, I really like https://github.com/akinomyoga/ble.sh for my brew-installed bash. But with the system-default awk (version 20200816) I get the error message towc: multibyte conversion failure on: '��' Only if I use GNU awk from brew, it works. akinomyoga, the developer of ble.sh really wants to support the system default awk, but it seems it isn't part of the open-source program any more. https://opensource.apple.com/source/awk/ only goes up to version 27.40.1, where the version on macOS 12.3.1 reports 32. Does anybody know more about the switch of awk and what features it has? The GitHub issue is https://github.com/akinomyoga/ble.sh/issues/190. BR Silvio
Posted Last updated
.
Post not yet marked as solved
1 Replies
940 Views
Why Mac, Why again? Command Line Tools is such a nightmare. I am using a macOS Monterey v 12.0.1 I am trying to install a PERL package by: cpanm DBI The output is: clang-10: warning: argument unused during compilation: '--sysroot /opt/MacOSX10.9.sdk' [-Wunused-command-line-argument] ld: warning: -pie being ignored. It is only used when linking a main executable ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd' for architecture x86_64 clang-10: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [blib/arch/auto/DBI/DBI.bundle] Error 1 -> FAIL Installing DBI failed. See /Users/tito_miniconda/.cpanm/work/1643647544.76158/build.log for details. Retry with --force to force install it. I am running out of ideas on how to handle this. Please any help is greatly appreciated.
Posted
by biotemon.
Last updated
.
Post not yet marked as solved
2 Replies
358 Views
When I go to my terminal and type in "python" or "python --version" I get back "command not found: python" I have the newest version downloaded but not even version 2 isn't showing up. What do I do? I even just factory reset my mac. I'm running the M1 mini
Posted
by DeLG.
Last updated
.
Post not yet marked as solved
5 Replies
422 Views
I have a certificate + private key in the Apple Keychain on a macOS 12 machine. The access control for the private key has been modified to add my program binary to the "Always allow access by these applications:" list. My program uses this certificate to do mTLS authentication using OpenSSL. Also inside the program I disable the Keychain UI temporarily while accessing items stored in there to disable any prompts. All this was working fine. I could even update this binary from a .pkg file installer to the same path and the access would still be inherited. But that is no longer the case. If I upgrade the binary now at the same path, the Keychain does not allow the program to access that private key. I have to go into the Keychain access application and manually remove the earlier entry and re-add the binary at the same path again into the list. Not sure if this is a macOS issue or by binary has changed somehow. There have been no major code base changes to the program. If this is something by design, is there a command line to add certain binaries to the Access List for the private key? So that I can automate this process somehow and not have to re-add the binary at the same path again every time.
Posted Last updated
.
Post not yet marked as solved
6 Replies
5.6k Views
I downloaded Command Line Tools from developer.apple.com for XCode 12 beta (22 june 2020 version) but after installing the stuff, this was the error that I got: git xcrun: error: unable to load libxcrun (dlopen(/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib, 0x0005): could not use '/Library/Developer/CommandLineTools/usr/lib/libxcrun.dylib' because it is not a compatible arch). Anybody any idea if there is some command line tools for the Developer Transition Kit?
Posted Last updated
.
Post not yet marked as solved
0 Replies
172 Views
I need to create a script for checking a security posture of a machine using OPSWAT MetaAccess. They have a built-in check, however, according to them, they aren't able to check since macOS 10.13+. This seems to coordinate with a change other people have discussed on other forums where the following commands don't work anymore. OPSWAT does support checks via custom shell script and so I'm figuring out how to write that now. The scripts that don't work anymore: defaults read com.apple.screensaver idleTime defaults -currentHost read com.apple.screensaver idleTime defaults -currentHost read com.apple.screensaver askForPassword defaults read com.apple.screensaver askForPassword
Posted Last updated
.
Post not yet marked as solved
1 Replies
222 Views
I'm trying to use automatic provisoning in our build pipeline using the following command: xcodebuild -project myproj.xcodeproj -scheme myscheme -configuration release -scmProvider system -allowProvisioningUpdates -verbose clean archive -authenticationKeyPath mykeyPath authenticationKeyID myKeyID -authenticationKeyIssuerID myIssuerID The clean succeeds, but the archive fails with the following error message : ▸ note: Build preparation complete ▸ note: Building targets in dependency order ▸ error: Could not connect to the server. (in target 'myscheme' from project 'myproj') ▸ error: No profiles for 'appid' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'appid'. (in target 'myscheme' from project 'myproj') ▸ ** ARCHIVE FAILED ** On some runs of the pipeline, instead of "could not connect to server" I get the following issue: ▸ error: The request timed out. (in target 'myScheme' from project 'myproj') The pipeline runs on a dedicated build server which can only connect to the internet using a proxy. The proxy is configured in the system settings and I've already tried the workaround from this thread: https://developer.apple.com/forums/thread/666368
Posted Last updated
.
Post not yet marked as solved
0 Replies
126 Views
Hi. I am able to get the USB port # of attached Android devices in command line via "adb devices -l". And in fact with adb, I can use the "shell getprops" parameters to find all sorts of things. But that's all for Android devices. I'm trying to find the same thing for attached iPhone & iPads via command line. I've played around with idb but even "idb describe" with all the metadata it provides does not include USB port #. I've looked into xcrun xctrace but don't see anything there either. Might anyone have other suggestions or other tools I should look into? Thanks!
Posted
by QEThomas.
Last updated
.
Post not yet marked as solved
6 Replies
1.5k Views
Since 8.2p1 OpenSSH support for FIDO/U2F hardware authenticators, add "ed25519-sk" and "ecdsa-sk" key type. macOS Monterey 12.2 bundled OpenSSH (version: 8.6p1) doesn't include built-in security keys support, but it seems that user can specify middle ware library to use FIDO authenticator-hosted keys (see man ssh-add, man ssh_config and man ssh-agent). I try to implement FIDO security key provider library, but bundled ssh-agent seems don't try to load the implemented library and simply return with "unknown or unsupported key type": $ ssh-agent -d -P "/*" SSH_AUTH_SOCK=SOME_VALUE; export SSH_AUTH_SOCK; echo Agent pid SOME_VALUE; debug1: new_socket: type = SOCKET debug2: fd 3 setting O_NONBLOCK debug1: new_socket: type = CONNECTION debug3: fd 4 is O_NONBLOCK debug1: process_message: socket 1 (fd=4) type 25 debug2: process_add_identity: entering debug1: parse_key_constraint_extension: constraint ext sk-provider@openssh.com debug1: process_add_identity: add sk-ssh-ed25519@openssh.com SHA256:KEY_HASH "KEY_COMMENT" (life: 0) (confirm: 0) (provider: /path/to/libsk-libfido2.so) debug1: new_socket: type = CONNECTION debug3: fd 4 is O_NONBLOCK debug1: process_message: socket 1 (fd=4) type 11 debug2: process_request_identities: entering debug1: process_message: socket 1 (fd=4) type 13 debug1: process_sign_request2: entering Confirm user presence for key ED25519-SK SHA256:KEY_HASH process_sign_request2: sshkey_sign: unknown or unsupported key type User presence confirmed Manually install OpenSSH from third-party (such as MacPorts/Homebrew, or simply build it from source code) works, but third-party OpenSSH can't read passwords stored in Keychain. Is bundled OpenSSH disable hardware key support at build time? Advice most appreciated. Thank you!
Posted
by HsinyuanX.
Last updated
.
Post not yet marked as solved
0 Replies
263 Views
I run some scripts to set up certain things when building a computer. Recently (ala Big Sur+) the specific commands to set things using systemsetup throw an error. It worked perfectly in the past, so something has changed, in fact I seem to recall it worked in earlier versions of BigSur. This is the error: 2022-04-09 07:07:33.282 systemsetup[2738:43831] ### Error:2 File:/System/Volumes/Data/SWE/macOS/BuildRoots/9dc5c14c79/Library/Caches/com.apple.xbs/Sources/Admin/Admin-876.2/InternetServices.m Line:379 Here is a code example: #!/usr/bin/perl $TZ = "America/New_York"; $CMD -settimezone $TZ; $curTZ = $CMD -gettimezone; print "\n\n$curTZ\n\n"; Notes: 1 even though it throws the error, it still sets the timezone correctly. 2 the error is the same no matter what "-set" verb is used; timezone, timeserver, computersleep, etc. 3 It does the same on both Intel and M1 machines. Any suggestions?
Posted
by pbaughman.
Last updated
.
Post not yet marked as solved
13 Replies
4.6k Views
I am relatively new to coding on Mac so I apologize in advance if the question is too simple. I encounter the following error when executing a code after updating the OS to Bug Sur: ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/lib/libm.tbd' for architecture x86_64 collect2: error: ld returned 1 exit status The code compiles but the does not give an output file. Everything was working perfectly before updating. Following instructions to a somewhat similar question, I un-installed the CLT and tried to reinstall the 11.5 version but that couldn't be done and the error was the version of Mac is too new. I'd appreciate any help or suggestions on this.
Posted Last updated
.
Post marked as solved
1 Replies
300 Views
Hi everyone. I am working on a project at my university where I have an Arduino that is using some sensors to read data. I wanted to go above and beyond on this project because it's for a final. The setup consists of an Arduino that will be connected to my MacBook via USB. This Arduino is going to send data values from its sensor when it receives a command. These commands will be uploaded to the CloudKit database from the users iPhone via a button in the UI. They will then be fetched from the CloudKit database on the MacBook where they will be sent to the Arduino. When the data returns to the MacBook, it will then be uploaded to the database where the users device will fetch the updated data and display it on the screen. I know this is not the ideal system by any means but it is what I have to work with. I've mostly finished the iOS side of things and have a working test app but my issue is the MacBook portion of the system. How can I preform this serial port communication and utilize CloudKit at the same time?
Posted
by graham34.
Last updated
.
Post not yet marked as solved
1 Replies
261 Views
crash-report.txt Seeing this crash info when trying to run my python application (full crash report is attached). Does anyone know what might be happening here? Process: Python [5883] Path: /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python Identifier: Python Version: 3.8.9 (3.8.9) Build Info: python3-103000000000000~1538 Code Type: ARM-64 (Native) Parent Process: Python [5881] Responsible: iTerm2 [901] User ID: 501 Date/Time: 2022-04-06 06:35:05.775 -0400 OS Version: macOS 11.6.2 (20G314) Report Version: 12 Anonymous UUID: F1B3654D-EF65-27C9-8D0C-4B1C82217421 Sleep/Wake UUID: 086CF930-9C99-4633-BEA1-2704C9016B77 Time Awake Since Boot: 2800 seconds Time Since Wake: 110 seconds System Integrity Protection: enabled Crashed Thread: 5 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0xa90667faa9056ffc -> 0x000067faa9056ffc (possible pointer authentication failure) Exception Note: EXC_CORPSE_NOTIFY
Posted
by jquiwa.
Last updated
.