Example ld: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.
Need "stubify" libs with utility tapi from default toolchain.
xcrun -r tapi stubify --help
xcrun -r tapi stubify [lib] -o [tbd]
Frameworks located in /System/Library/Frameworks/ and /System/Library/PrivateFrameworks/
- switch csrutil disable in recovery mode (reboot with [CMD]+R)
- run sudo regenerate_all_tbd.rb
- revert csrutil enable in recovery mode (reboot with [CMD]+R)
!! Exists orfaned .tbd files without appropriate libs !!