https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
b

bod

11/04/2019, 4:17 PM
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

Alex Pogrebnyak

11/04/2019, 4:28 PM
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

bod

11/04/2019, 4:42 PM
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

Alex Pogrebnyak

11/04/2019, 4:43 PM
yes, please. feel free to ask questions
b

bod

11/04/2019, 4:46 PM
thanks 🙂
YES IT WORKS 🎉
a

Alex Pogrebnyak

11/04/2019, 5:47 PM
great )
b

bod

11/04/2019, 5:47 PM
the trick was the "Framework Search Paths" needs to be the parent of the ".framework" directory......
👍 1
seems obvious now that I know it 😛
2 Views