When I am trying to sourceCpp
, it gives a warning:
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/
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