James Smith
10/22/2020, 12:31 PMdyld: Library not loaded: @rpath/iOSProject.framework/iOSProject
Here is cinterops:
// Path to .def file
defFile("src/iosMain/cinterop/iOSProject.def")
// Directories for header search (an analogue of the -I<path> compiler option)
includeDirs("$projectDir/native/iOSProject/iOSProject.framework/Headers")
Here is def:
language = Objective-C
headers = iOSProject.h iOSProject-Swift.h
staticLibraries = libiOSProject.a
libraryPaths = ../iOSProject.framework
Any idea why it happens? Maybe there are alternative ways to include the library?Artyom Degtyarev [JB]
10/22/2020, 12:43 PMJames Smith
10/22/2020, 12:44 PM1.4.10
James Smith
10/22/2020, 12:45 PM"-include-binary", "$projectDir/native/libiOSProject.a"
But result is the sameJames Smith
10/22/2020, 1:21 PM@rpath/iOSProject.framework/iOSProject
because it's specifed in xcode project, but I'm not sure how kotlin compiler would know to include the library at that placeArtyom Degtyarev [JB]
10/22/2020, 3:40 PM.a
file located inside iOSProject.framework
?James Smith
10/23/2020, 11:53 PM.a
file is there. I've tried with the framework instead, and it finally managed to make it work with the "rpath" argument. The drawback is that it's not included in the klib, so I had to copy the framework and linker options to the project that's supposed to depend on it. Is there any way to include the framework in klib so it would link automatically?Anmol Verma
11/18/2022, 8:46 AM