103
votes
Why am I getting an “invalid active developer path” when attempting to use Git after upgrading to macOS Sequoia?
If you don't want to install nor use Xcode (I don't) you can install only
command tools for Xcode (please see Edit)
Preconditions:
you have AppleID
Solution
Go to https://developer.apple.com/...
79
votes
Accepted
How do I uninstall the command line tools for Xcode?
Delete this one folder:
/Library/Developer/CommandLineTools
This uninstall process is documented officially by Apple.
If you have installed these tools another way or have prompts to upgrade them, ...
77
votes
Why am I getting an “invalid active developer path” when attempting to use Git after upgrading to macOS Sequoia?
For macOS High Sierra, just run the same command:
xcode-select --install
and everything will get back to work.
2019 UPDATE: This is needed for every new macOS version, so it'll work for Catalina as ...
45
votes
How to install recent clang++ with Homebrew?
Now it's enough to run:
brew install llvm
The bottle now includes clang by default.
42
votes
Why am I getting an “invalid active developer path” when attempting to use Git after upgrading to macOS Sequoia?
Here are the steps I needed to go through for Mojave:
First xcode-select --reset.
Next I needed to upgrade xcode tools to the latest version: sudo softwareupdate -ia --verbose (NB: this runs all ...
28
votes
Why am I getting an “invalid active developer path” when attempting to use Git after upgrading to macOS Sequoia?
I tried the xcode-select --install but I was forced to install it from the App Store.
Then all git stuff ran smoothly.
26
votes
Accepted
What replaces x86 intrinsics for C when Apple ditches Intel CPUs for their own chips?
Intel Intrinsics are really just a library that provides easier access to a number of Intel instructions sets - such as SSE (Streaming SIMD Extensions), AVX, etc. - for C programmers. The goal is to ...
24
votes
How to take 9:41 am screenshots on an iOS Simulator and Device?
Starting with Xcode 11 beta 4, you can use the xcrun simctl command to set the time and battery in the Simulator.
xcrun simctl status_bar <device> override --time "9:41" \
--...
23
votes
Why is /usr/include missing? I have Xcode and Command Line Tools installed (Mojave)
You have to run another step after installing the command line tools:
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
Why? Apple have ...
22
votes
Why am I getting an “invalid active developer path” when attempting to use Git after upgrading to macOS Sequoia?
xcode-select --install and xcode-select --reset didn't work for me.
I had to download it manually from Apple Developers website: https://developer.apple.com/download/
Choose the Command line of your ...
22
votes
Accepted
/usr/include missing on macOS Catalina (with Xcode 11)
Set the CPATH environment variable in your shell (e.g., put this in your .zshrc assuming you're using zsh):
export CPATH=`xcrun --show-sdk-path`/usr/include
And then try to build your project again.
...
21
votes
Accepted
How to downgrade Composer via homebrew?
To check the versions available you can run this command:
brew log composer
Then install Composer and change the version directly via Composer command.
brew install composer
composer self-update 1.10....
20
votes
Homebrew installed libraries, how do I use them?
For recent versions of Homebrew, installed libraries (for example, SDL) will be located in $(brew --prefix)/lib as symlinks. Their corresponding header files will be in $(brew --prefix)/include.
...
19
votes
Why am I getting an “invalid active developer path” when attempting to use Git after upgrading to macOS Sequoia?
The accepted answer is correct, but also note that git does not make it obvious if the error is coming from remote or from local. If you are running OS X on your remote, your install problem may be on ...
15
votes
Accepted
Separate environment for personal and development use under macOS
There are multiple options:
The simplest would be to create two user accounts. Your first account is created during the first use of the Mac. Create a second account by clicking the Apple-menu in the ...
13
votes
Can I compile .NET C# code on my Mac?
You can install it with homebrew:
brew install mono
Then you can use it with:
mcs hello.cs
mono hello.exe
13
votes
C# programming on macOS
The Mono project maintains a cross-platform C#/.net environment which works well on macOS.
http://www.mono-project.com/docs/about-mono/supported-platforms/osx/
13
votes
Why does my iPhone 16 Pro have iOS 18.0 but I can’t find a way to activate developer mode anywhere?
Here’s what I have found:
My iPhone was on “Low Battery Mode.”
I connected it to my Mac and opened “XCode > Window > Devices & Simulators.”
Select “Allow” on my mac
Select “Trust” on my ...
11
votes
Accepted
Way for new Mac touch bar to behave the same as the Old keyboard
In the system preferences go to "Keyboard". Select the "Shortcuts"-tab. Select "Function Keys" in the left menu. Click the + and add the applications where you want the F-keys to always show.
If you ...
11
votes
Accepted
Is there a way to code sign ad-hoc iOS apps for longer than 7 days in Xcode?
Free developer membership apps require resigning to be functional after 7 days.
Paid developer membership apps expire after 1 year. You can also submit an app for testing to TestFlight which signs ...
grg♦
- 206k
11
votes
XCode : How to use cmd + x to either cut the current line (if no text is selected) or cut the selected text
That is correct. (Xcode 10)
Add the entry for cut line and copy line in the IDETextKeyBindingSet.plist file
Save the IDETextKeyBindingSet.plist
Restart Xcode
Set a key for the new command through ...
11
votes
Make shortcut to enable/disable JavaScript with Safari 17.0
There used to be the setting com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptEnabled, but this seems to have disappeared sometime prior to Safari 17. As a substitute, we can use ...
10
votes
How to increase font size of Eclipse globally?
Solution for Eclipse Oxygen at MacOS High Sierra (Dec 2017)
Open terminal and run commands:
cd /Applications/Eclipse.app/Contents/Eclipse/plugins/org.eclipse.ui.themes_1.2.1.v20170809-1435/css
vim ...
10
votes
Accepted
Executable compiled in Xcode fails to run except from the terminal
Application Bundle
The executable file needs to be placed within an application bundle – a special directory structure. The top-level directory has the extension .app.
See Building OSX App Bundle for ...
9
votes
Accepted
Remove Safari web inspector ruler
Apparently there is a hidden button in the elements tab that toggles the rulers.
9
votes
What replaces x86 intrinsics for C when Apple ditches Intel CPUs for their own chips?
The Apple M1 supports Neon SIMD instructions but not SVE. You can use sse2neon which clones the x86-64 SIMD intrinsics (MMX, SSE, AES) with their Neon counterparts.
Here are some benchmarks using this ...
8
votes
Accepted
How to disable all caches in safari 11?
In the Web Inspector, under the Network tab, unselect ‘Use the resource cache when loading resources’. Blue means the cache is not used, black means the cache is used.
...
grg♦
- 206k
7
votes
How to take 9:41 am screenshots on an iOS Simulator and Device?
There are 2 ways to do this:
1. Clone, build and run SimulatorStatusMagic in your simulator.
This will only work for your simulator.
https://github.com/shinydevelopment/SimulatorStatusMagic
cd ~/...
7
votes
C# programming on macOS
For compiler only I recommend to use .net core with editor of choice. I use VS code quite a lot, but you can use Sublime, Atom, etc.
As for IDE, I recommend to try JetBrains Rider instead of VS for ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
development × 494macos × 148
xcode × 108
ios × 94
iphone × 40
applications × 32
developer-program × 30
ios-appstore × 29
safari × 27
software-recommendation × 27
ipad × 25
terminal × 23
command-line × 22
macbook-pro × 21
mac × 19
homebrew × 17
app-store-connect × 16
gcc × 13
windows × 10
mac-appstore × 10
unix × 10
python × 10
applescript × 9
keyboard × 8
network × 8