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

前端 未结 6 1214
生来不讨喜
生来不讨喜 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:03

    The dates of CoreFoundation and CoreFoundation.tbd show that the latter is much older. This suggests it can be ignored. The out of sync problem can easily be cured by deleting the .tbd file. It is not needed and if not present cannot generate the out of sync error.

    I use CoreFoundation and IOKit on 10.13.6 and this is a simple solution avoiding reloading CommandLine tools or setting links or trying to export SDKs etc.

    John

提交回复
热议问题