i

    ivan.savytskyi

    3 years ago
    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

    svyatoslav.scherbina

    3 years ago
    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
    $ otool -l path/to/your/f.framework/f | grep -A 2 LC_ID_DYLIB
    The last line of the output should be like
    @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
    .