I am getting this error trying to compile AI-Feynman
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd' for architecture x86_64
I tried to generate a new .tbd file from libSystem.dylib with 'tapi stubify ...' but I can't locate the libSystem.B.dylib file.
The other .dylibs in XCode are not the right ones.
% locate libSystem.B.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/tvOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libSystem.B.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/watchOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libSystem.B.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libSystem.B.dylib
Any ideas on how to generate a replacement .tbd file from a 'virtual' shared library which lives in a cache?
% otool -L /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/tvOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libSystem.dylib
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/tvOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libSystem.dylib (architecture x86_64):
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.100.3)
/usr/lib/system/libcache.dylib (compatibility version 1.0.0, current version 85.0.0)
/usr/lib/system/libcommonCrypto.dylib (compatibility version 1.0.0, current version 60191.100.1)
/usr/lib/system/libcompiler_rt.dylib (compatibility version 1.0.0, current version 103.1.0)
/usr/lib/system/libcopyfile.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/system/libcorecrypto.dylib (compatibility version 1.0.0, current version 1218.100.47)
/usr/lib/system/libdispatch.dylib (compatibility version 1.0.0, current version 1325.100.36)
/usr/lib/system/libdyld.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/system/libmacho.dylib (compatibility version 1.0.0, current version 994.0.0)
/usr/lib/system/libremovefile.dylib (compatibility version 1.0.0, current version 60.0.0)
/usr/lib/system/libsystem_asl.dylib (compatibility version 1.0.0, current version 392.100.2)
/usr/lib/system/libsystem_blocks.dylib (compatibility version 1.0.0, current version 79.1.0)
/usr/lib/system/libsystem_c.dylib (compatibility version 1.0.0, current version 1507.100.9)
/usr/lib/system/libsystem_collections.dylib (compatibility version 1.0.0, current version 1507.100.9)
/usr/lib/system/libsystem_configuration.dylib (compatibility version 1.0.0, current version 1163.100.19)
/usr/lib/system/libsystem_containermanager.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/system/libsystem_coreservices.dylib (compatibility version 1.0.0, current version 133.0.0)
/usr/lib/system/libsystem_darwin.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/system/libsystem_dnssd.dylib (compatibility version 1.0.0, current version 1557.103.1)
/usr/lib/system/libsystem_featureflags.dylib (compatibility version 1.0.0, current version 56.0.0)
/usr/lib/system/libsystem_info.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/system/libsystem_m.dylib (compatibility version 1.0.0, current version 3204.80.2)
/usr/lib/system/libsystem_malloc.dylib (compatibility version 1.0.0, current version 374.100.5)
/usr/lib/system/libsystem_networkextension.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/system/libsystem_notify.dylib (compatibility version 1.0.0, current version 301.0.0)
/usr/lib/system/libsystem_product_info_filter.dylib (compatibility version 1.0.0, current version 10.0.0)
/usr/lib/system/libsystem_sandbox.dylib (compatibility version 1.0.0, current version 1657.103.1)
/usr/lib/system/libsystem_sim_kernel.dylib (compatibility version 1.0.0, current version 238.100.1)
/usr/lib/system/libsystem_sim_platform.dylib (compatibility version 1.0.0, current version 238.100.1)
/usr/lib/system/libsystem_sim_pthread.dylib (compatibility version 1.0.0, current version 238.100.1)
/usr/lib/system/libsystem_trace.dylib (compatibility version 1.0.0, current version 1375.100.9)
/usr/lib/system/libunwind.dylib (compatibility version 1.0.0, current version 202.2.0)
...
(base) davidlaxer@x86_64-apple-darwin13 iot-inspector-client % ls -l /usr/lib/system
total 1720
drwxr-xr-x 4 root wheel 128 May 9 14:30 introspection
-rwxr-xr-x 1 root wheel 1617536 May 9 14:30 libsystem_kernel.dylib
-rwxr-xr-x 1 root wheel 512560 May 9 14:30 libsystem_platform.dylib
-rwxr-xr-x 1 root wheel 656656 May 9 14:30 libsystem_pthread.dylib
-rwxr-xr-x 1 root wheel 150080 May 9 14:30 wordexp-helper
Any ideas on what the linker doesn't like about
file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd' for architecture x86_64