rlinker-warning

Odd ld warning from rstudio


while i tried to install packages on Rstudio,I kept encountering the ld warning like this:

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.

Does someone know how to fix this?


Solution

  • Reinstalling CommandLineTools doesn't work for me.

    These warnings were caused by the frameworks in /System/Library/Frameworks/.

    The solution

    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/
    sudo ln -s  /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Security.framework /Library/Frameworks/