Another question (KN iOS), if I have 3rd party dyn...
# multiplatform
i
Another question (KN iOS), if I have 3rd party dynamic library (framework), how I can bundle it into the executable binary generated by
linkTestDebugExecutableIos
task (test.kexe). As if I run this kexe on the simulator obviously I get
dyld: Library not loaded
?
s
You can’t bundle a dynamic library into the executable. The executable instead expects to find the dynamic library in one of the predefined locations. You can discover this by running
Copy code
$ otool -l path/to/your/f.framework/f | grep -A 2 LC_ID_DYLIB
The last line of the output should be like
Copy code
@rpath/f.framework/f (offset 24)
Then
f.framework
is expected to be located at
Frameworks
directory near the executable, because its
@rpath
is
@executable_path/Frameworks
.
👍 1