Dyld can not find DVTFoundation.framework

I am trying to use appledoc for one of my projects. I downloaded the project, embedded it in Xcode, and copied the appledoc file to ~/bin . Trying to run the binary gives this error:

 appledoc version: 2.1 (build 858) !> dyld: Library not loaded: @rpath/DVTFoundation.framework/Versions/A/DVTFoundation !> Referenced from: /usr/bin/xcrun !> Reason: image not found docsetutil failed to index the documentation set, continuing with what was indexed... 

That’s the whole conclusion. I searched Google and found nothing; I ended up uninstalling Xcode (version 4.6.3, from the Mac App Store) and reinstalling it. I restored appledoc and tried again, but I got the same error.

I thought the problem might be that I also had Xcode 5 Developer Preview installed, so I decided to use xcode-select to make sure my build settings were normal. But running xcode-select -print-path gave me a similar error:

 dyld: Library not loaded: @rpath/DVTFoundation.framework/Versions/A/DVTFoundation Referenced from: /usr/bin/xcode-select Reason: image not found Trace/BPT trap 

I also tried appledoc with Xcode 5, with the same results. Any ideas what might be wrong here?


Edit: Here is the output of otool -L ~/bin/appledoc :

 bin/appledoc: /usr/lib/libicucore.A.dylib (compatibility version 1.0.0, current version 51.1.0) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 1044.0.0) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 20.0.0) /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration (compatibility version 1.0.0, current version 596.2.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 59.0.0) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1242.0.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 844.0.0) 

And otool -L/usr/bin/xcode-select :

 /usr/bin/xcode-select: /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 945.0.0) @rpath/DVTFoundation.framework/Versions/A/DVTFoundation (compatibility version 1.0.0, current version 2091.0.0) @rpath/IDEFoundation.framework/Versions/A/IDEFoundation (compatibility version 1.0.0, current version 2102.0.0) @rpath/Xcode3Core.ideplugin/Contents/MacOS/Xcode3Core (compatibility version 1.0.0, current version 2110.0.0) /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 744.0.0) 
+5
source share
1 answer

Just update your Xcode in the App Store, if it is not already installed, install Xcode. Then do
sudo xcodebuild -license on the terminal and accept this license.

0
source

Source: https://habr.com/ru/post/1492307/


All Articles