AMSupportURL* "is implemented in both"?
I get the below error message when I run git
for the first time after a reboot:
objc[728]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1eff3a7a0) and ?? (0x1188402b8). One of the two will be used. Which one is undefined.
objc[728]: Class AMSupportURLSession is implemented in both ?? (0x1eff3a7f0) and ?? (0x118840308). One of the two will be used. Which one is undefined.
It doesn't happen with other commands like go
. Any idea what it means?
This is on a new M1 MBA.
Solution 1:
I encountered the same problem. I installed Xcode, and installed "git" on "brew", I uninstalled "git" on "brew" and it solved the problem for now, no more errors.
Solution 2:
It means two symbols are defined twice in the git program that’s first in your path (or that you call by a full path).
You can ignore that message 99.9% of the time. It’s there for the devlopers to clean up since there are two definitions of the same function / library.
This is only a problem if all of the below are satisfied:
- The functions are actually different and not just duplicated
- Your usage of the functions breaks due to the difference
- You lose the lottery and call the version you don’t want to run this time
It’s not a good thing to have, but alone isn’t a problem. If you work with the code, you would want to inspect both - and fix the duplication since it’s an edge case that could cause pain / crash / issues down the road.