b

    bod

    2 years ago
    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?
    Alex Pogrebnyak

    Alex Pogrebnyak

    2 years ago
    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

    2 years ago
    thanks! It seems I did it a bit differently (my framework appeared in the "project" but not in the "app" ... if that makes sense)
    but now it's still not working ... it says "ld: framework not found". I will start from scratch with a new project 😛
    Alex Pogrebnyak

    Alex Pogrebnyak

    2 years ago
    yes, please. feel free to ask questions
    b

    bod

    2 years ago
    thanks 🙂
    YES IT WORKS 🎉
    Alex Pogrebnyak

    Alex Pogrebnyak

    2 years ago
    great )
    b

    bod

    2 years ago
    the trick was the "Framework Search Paths" needs to be the parent of the ".framework" directory......
    seems obvious now that I know it 😛