[ad_1]
I’m constructing an ios framework, the ios framework hyperlinks a shared library (dylib) (libAbc.dylib). The framework itself doesnt comprise or ship the shared dylib file, it simply hyperlinks it.
Then I’m utilizing this created ios Framework in an ios app. Then hyperlink the identical library library (libAbc.dylib) seperately within the app aspect.
It compiles efficiently. However when I attempt to load it, it doesnt appear to seek out the shared lib (libAbc.dylib). Eventhough the shared lib (libAbc.dylib) is packed to the installer contained in the Frameworks folder.
When I’m beginning the app it fails with such an error.
dyld[15061]: Library not loaded: 'libAbc.dylib'
Referenced from: '/personal/var/containers/Bundle/Software/D210D922-E56C-4991-89E6-276FFC4F18BB/Runner.app/Runner'
Cause: tried: '/usr/lib/system/introspection/libAbc.dylib' (no such file), 'libAbc.dylib' (no such file), '/usr/native/lib/libAbc.dylib' (no such file), '/usr/lib/libAbc.dylib' (no such file), '/usr/lib/system/introspection/libAbc.dylib' (no such file), '//libAbc.dylib' (no such file), '/usr/native/lib/libAbc.dylib' (no such file), '/usr/lib/libAbc.dylib' (no such file)
Library not loaded: 'libAbc.dylib'
Referenced from: '/personal/var/containers/Bundle/Software/D210D922-E56C-4991-89E6-276FFC4F18BB/Runner.app/Runner'
Cause: tried: '/usr/lib/system/introspection/libAbc.dylib' (no such file), 'libAbc.dylib' (no such file), '/usr/native/lib/libAbc.dylib' (no such file), '/usr/lib/libAbc.dylib' (no such file), '/usr/lib/system/introspection/libAbc.dylib' (no such file), '//libAbc.dylib' (no such file), '/usr/native/lib/libAbc.dylib' (no such file), '/usr/lib/libAbc.dylib' (no such file)
How can I specify the place to search for the shared lib at runtime.
I attempted this to set within the runtime search path

Additionally added the Framework folder path to the Library search path and Framework search path within the app aspect, however no luck right here.
I additionally tried to construct the framework specifying the runtime search path, library search path and Framework search path. This additionally didnt work for me.
The place ought to i specify the situation for the shared lib ?
[ad_2]
