Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

go install golangci-lint failed. "ld: framework not found CoreFoundation"#2429

Unanswered
AGou-ops asked this question inQ&A
Discussion options

error:

> go versiongo version go1.17.5 darwin/arm64> go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.42.1# github.com/golangci/golangci-lint/cmd/golangci-lint/usr/local/go/pkg/tool/darwin_arm64/link: running clang failed:exit status 1ld: framework not found CoreFoundationclang: error: linkercommand failed withexit code 1 (use -v to see invocation)

os: MacOS 12.1 Monterey

what I have tried:

  • reinstall golang(homebrew and offical pkg)

How to fix it? Thx.

You must be logged in to vote

Replies: 1 comment 4 replies

Comment options

butuzov
Dec 22, 2021
Collaborator

Try to reinstall Xcode

xcode-select --install
You must be logged in to vote
4 replies
@AGou-ops
Comment options

I already installed xcode.
And I tried to reinstall xcode but it still doesn't work.

@butuzov
Comment options

butuzovDec 22, 2021
Collaborator

Then check ifCoreFoundation needs to be installed implicitly. It supposes to be installed with xcode (check/Library/Frameworks/).

@AGou-ops
Comment options

Thanks for your reply.

no CoreFoundation in/Library/Frameworks/:

> ll /Library/Frameworks/  rwxr-xr-x   1   root   wheel    582 KiB   Sat Nov 20 14:32:51 2021    679F  rwxr-xr-x   5   root   wheel    160 B     Wed Dec  8 07:39:27 2021    CoreRepairCore.framework/  rwxr-xr-x   5   root   wheel    160 B     Wed Dec  8 07:39:27 2021    CoreRepairKit.framework/  rwxr-xr-x   1   root   wheel     50 B     Wed Dec  8 07:39:27 2021    iTunesLibrary.framework  ⇒ /System/Library/Frameworks/iTunesLibrary.framework

Should I installCoreFoundation? I found a source code repoGithub CoreFoundation, but I don't know how to install it.😅

@dowdt
Comment options

@AGou-ops How did you install it?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
3 participants
@AGou-ops@butuzov@dowdt

[8]ページ先頭

©2009-2025 Movatter.jp