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

前端 未结 6 1203
生来不讨喜
生来不讨喜 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 09:11

    Edit: this seems to have stopped working post 10.13.16. Trying it will not hurt your mac after the re-install but i'm not sure how to fix it going forward.

    Came across this recently, just remove the command line tools for mac and re-install.

    $ rm -rf /Library/Developer/CommandLineTools
    $ xcode-select --install
    

    After these steps you will see a pop to install the new version of the tools.

提交回复
热议问题