icerockdev / moko-widgets-template

Template project of a Mobile (Android & iOS) Kotlin MultiPlatform project with the MOKO widgets and other MOKO libs
https://moko.icerock.dev/
Apache License 2.0
10 stars 1 forks source link

Cannot include additional cocoapods in podfile #4

Closed stevesoltys closed 4 years ago

stevesoltys commented 4 years ago

I am unable to add additional Cocoapods to this project.

For instance, adding these:

kotlin {
     cocoapods {
         pod("FirebaseAuth")
         pod("GoogleSignIn")
     }
}

results in the syncMultiPlatformLibraryDebugFrameworkIosArm64 task failing. The output specifies that Kotlin Native cannot resolve the header files for these frameworks and that I must build in XCode to resolve the issue (I am building in XCode).

Building the same project with the :mpp-framework:syncFramework task works, but the application is unusable because this task doesn't bundle resources and such for moko.

Let me know if you have any possible solutions for this.

Thanks in advance.

stevesoltys commented 4 years ago

Issue was resolved by following the structure of the sample found here: https://github.com/icerockdev/moko-widgets/tree/master/sample