In Xcode, how do I link a dynamic library (libcurl) so that the app also works on older versions of the Mac OS?
问题 I am using libcurl in a Mac project built and compiled on OS 10.7 Lion. I can link to the dynamic library just fine, using either the -lcurl option in Other Linker Flags or by adding the library to my project. Everything works as its supposed to. I'd like the application to work on OS 10.6 and 10.5 as well. I set the deployment target accordingly. When I go to run the application in one of those versions of the OS, I get a dyld error: Library not loaded: /usr/lib/libcurl.4.dylib Reason: