ld: warning: text-based stub file are out of sync. Falling back to library file for linking
问题 When I am trying to sourceCpp , it gives a warning: ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking. But the function actually works. Just wondering how to solve this warning. 回答1: I had this problem while compiling Go code on my Mac too. The tld files were out of sync in /System/Library