Xcode trying to load a static library at run-time.

dyld[3198]: Library not loaded: @rpath/../Frameworks/freetype.framework/Versions/A/freetype Referenced from: <6BFD5FE8-3CE3-3AA9-8264-432DA092F1B1> /Users/danielmarcus/Desktop/SFML-2.6.2/lib/libsfml-graphics.2.6.2.dylib Reason: tried: '/Users/danielmarcus/Library/Developer/Xcode/DerivedData/github_demo-eotoolowecsaypbbvkfzcwzkyosw/Build/Products/Debug/freetype.framework/Versions/A/freetype' (no such file), '/Library/Frameworks/freetype.framework/Versions/A/freetype' (no such file), '/System/Library/Frameworks/freetype.framework/Versions/A/freetype' (no such file, not in dyld cache) Messa

That doesn't have anything to do with static libraries. It just can't find an appropriate dynamic library.

Don't use comments to reply. They get lost and no one ever sees them.

Freetype is a commonly used library for certain open-source projects. In that context, it could be used as a static library.

However, if your case, the dynamic library libsfml-graphics.2.6.2.dylib is trying to load it as a dynamic library.

  1. Why would graphics try to load it as a dynamic library?

  2. And why is it not being found?

  1. Obviously the developers felt they needed it. You'd have to ask them for details.
  2. Obviously you haven't included it in your project. Freetype is a 3rd party framework. It's commonly used with open source tools, but relatively rare on macOS.
Xcode trying to load a static library at run-time.
 
 
Q