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

KamilH

09/29/2020, 7:25 PM
I’m trying to build Multiplatform library, I used a template “Mobile Library” from IntelliJ, implemented some basic stuff, added
cocoapods
plugin with some basic configuration. Then I built a project next I used
podBuildDependenciesIos
. Podspec files has been generated properly along framework. Then I added in my iOS project a pod with the library.
pod install
was also successful. When I’m trying to import library in the project I can do it (XCode sees the name of the library), however when I’m trying to build a project I’m getting an error
No such module 'MobileLibrary'
. What could be a problem?
k

Kris Wong

09/29/2020, 7:30 PM
just to confirm the obvious - you opened the xcworkspace file and not the .xcodeproject file, right?
k

KamilH

09/29/2020, 7:32 PM
Yes, I’m trying to import this library in my old project where I also have other pods installed
Nevermind, it turned out that it was a problem with the file in which I tried to import the library. In the rest of the files in the project it works well, so it’s definitely a problem not on the Kotlin level. Thanks for the answer anyway 🙂