Hello, World! I'm trying to import my lib as a .f...
# multiplatform
b
Hello, World! I'm trying to import my lib as a .framework into XCode and it appears to be done correctly (it's listed in "frameworks"), but
import name_of_my_lib
gives "No such module". Any idea?
a
I can recommend to do like we do: https://medium.com/@icerock/how-to-start-use-kotlin-multiplatform-for-mobile-development-1d3022742178 (section “5. iOS app realization”)
b
thanks! It seems I did it a bit differently (my framework appeared in the "project" but not in the "app" ... if that makes sense)
👋 1
but now it's still not working ... it says "ld: framework not found". I will start from scratch with a new project 😛
a
yes, please. feel free to ask questions
b
thanks 🙂
YES IT WORKS 🎉
a
great )
b
the trick was the "Framework Search Paths" needs to be the parent of the ".framework" directory......
👍 1
seems obvious now that I know it 😛