ld: warning: text-based stub file are out of sync. Falling back to library file for linking

前端 未结 6 1312
生来不讨喜
生来不讨喜 2021-01-30 08:31

When I am trying to sourceCpp, it gives a warning:

ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/

6条回答
  •  悲&欢浪女
    2021-01-30 08:56

    I had this problem while compiling Go code on my Mac too.

    The tld files were out of sync in /System/Library/Frameworks/.

    The solution:

    Just links the recent frameworks from MacOSX.sdk to /Library/Frameworks/

    sudo ln -s  /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework /Library/Frameworks/CoreFoundation.framework
    

提交回复
热议问题