8

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.

2
4

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.

1
  • This worked fine for me. – Renoir Reis May 26 at 23:55
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:

  1. The functions are actually different and not just duplicated
  2. Your usage of the functions breaks due to the difference
  3. 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.

4
  • 1
    I have Xcode installed but I don't do anything with it (I work primarily with Go). Any idea why git triggers the message? – frank cedar Nov 29 '20 at 17:09
  • What is the precise path to the git you call? The idea is that binary links against two libraries for a function it calls @frankcedar – bmike Nov 29 '20 at 17:40
  • I first noticed it when I ran my command alias gs which maps to git status, where git is /usr/bin/git – frank cedar Nov 29 '20 at 17:59
  • So Apple shipped that bug, when you update, it may be fixed at some point. Or you could install your own binary and patch it and run out of usr local – bmike Nov 29 '20 at 18:32
0

I meet the same issue when do make on Publish(a site generator repo) with Mac mini M1.

objc[2482]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1faf1c188) and ?? (0x11485c2b8). One of the two will be used. Which one is undefined.

I think it is a common error as I see a lot posts on Google about it. But the warning message is no help on where to find the root cause.

1
  • Your post doesn't look like an answer to the question. Answers should not be used as substitutes for comments. Please edit or consider deleting it. Thanks. – Mockman Jun 11 at 11:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .