James Smith
09/25/2020, 12:12 PMdyld: Library not loaded: @rpath/MyFramework.framework/MyFrameworkMyFramework
Referenced from: /redacted/path/build/bin/ios/debugTest/test.kexe
Reason: image not found
My gradle setup is exactly as in the article, there are no warnings from the linker.
I've checked several resources about xcode problems like this, tried settings from these answers:
https://stackoverflow.com/questions/27174371/ios-8-dynamic-framework-library-not-loaded
https://stackoverflow.com/questions/45542928/load-custom-dynamic-library-dylib-in-ios-applicationaleksey.tomin
09/25/2020, 12:15 PMTijl
09/25/2020, 12:18 PMTijl
09/25/2020, 12:20 PMTijl
09/25/2020, 12:22 PMaleksey.tomin
09/25/2020, 12:24 PMJames Smith
09/25/2020, 12:26 PMTijl
09/25/2020, 12:31 PM-ObjC
to the linker as well depending on what you link, and maybe explicitly pass the frameworks, e.g.
linkerOpts("-framework", "SomeFramework")
I also use a slightly different approach where instead of messing with xcrun
I have a copy task that puts all the frameworks in a Frameworks
directory next to test.kexe
Tijl
09/25/2020, 12:32 PMman ld
is your friend I guess