c++ - Application bundle with dylib -
all,
first of every question on topic deployment ready use application. situation different.
i developing application on mac xcode 5.1.1 (meaning i'm still writing code) c++. application contains main binary executable (which set cocoa bundle application) , couple of dylib libraries (which i'm writing , have control over).
the trouble comes fact @ point test code. project main application in "build phases->link binary libraries" references libraries binary uses , dylib's have dependencies there.
now when i'm trying call dlopen, call fails because dylib files can not found.
so questions are:
- should dylib files stored in bundle?
- if yes - how put them there? because presume whatever did not enough.
- if not - correct way of testing code?
thank information can provide.
the dylibs not stored in app bundle compiled app , included binary executable, include them add them target dependencies , link libraries in "build phases" there no need dlopen
and include headers like:
#include "dylib.h"