I ended up copying the library to */Users/arthur/Library/Developer/Xcode/DerivedData/cryptoppAES-bbtucachjqqaeediqkjywpllseec/Build/Products/Debug/cryptoppAES*
*And the linker found it and everything ran successfully. It is clear that I am going to have to read in detail the XCode IDE manual, I know that reading the manual is a form of cheating as my fellow programmers used to say. :-)* *Thank you again for your time and help,* *Arthur* On Tuesday, December 8, 2015 at 4:28:31 PM UTC-7, Jeffrey Walton wrote: > > > > On Tuesday, December 8, 2015 at 6:02:16 PM UTC-5, Arthur Coleman wrote: >> >> I loaded the following code into an XCode 7.1.1 project added the >> location of crypto++ headers and libraries to their respective search >> paths. I then added the crypto++ libraries libcryptopp.a and >> libcryptopp.dyld Link Binary With Libraries list. The code compiled >> successfully and began running. I then receive the following error: >> >> *dyld: Library not loaded: libcryptopp.dylib* >> >> * Referenced from: >> /Users/arthur/Library/Developer/Xcode/DerivedData/cryptoppAES-bbtucachjqqaeediqkjywpllseec/Build/Products/Debug/cryptoppAES* >> >> * Reason: image not found* >> >> > It looks like the shared object is not being copied under Xcode. > > I think you have three choices. First, delete the shared object so that > you link against the static library. Second, follow something like > https://stackoverflow.com/questions/20092886/image-not-found-error-while-using-custom-framework > > . Third, set DYLD_FALLBACK_LIBRARY_PATH ( > https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/dyld.1.html > ). > > The first is a pretty good choice on Apple platforms, especially if you > are building for iOS. Apple linkers always link to the shared object, even > though you try to force static linking. Its a problem on iOS because most > versions of iOS don't allow dynamic linking for user code. > > I generally don't use Xcode, so maybe someone else will have other > suggestions. > > Jeff > -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.