I am trying to link the GLEW library to an Xcode project, but I have been running into an issue. Whenever I set up my build to link with libGLEW.a, I will immediately get a crash on startup, with an error output reading:
yld: Library not loaded: /usr/lib/libGLEW.1.12.0.dylib Referenced from: /Users/xxx/Library/Developer/Xcode/DerivedData/xcode-test/Products/Debug/manualWindow.app/Contents/MacOS/manualWindow Reason: image not found
I have not written any code to request that my application load this dynamic library. This behavior seems like perhaps my GLEW library is actually an import library, and is attempting to load the dylib. I did build GLEW myself, and I can see that "-DGLEW_STATIC" was specified on the command line, when generating the objects for the static library.
Does anybody know how I might be able to tell if my GLEW library (libGLEW.a) is actually an import library for the dylib? And as a follow-up, how to build the library properly to avoid that?