Andrii Yanechko
11/14/2023, 2:44 PMpod
into a kotlin KMM module and then include it into the common
KMM module, which is the main KMM module ?
The actual case I want to implement is in 🧵:google-sso
- androidMain: implement("google-sign-in-android-dependency")
- iOSMain: pod("GoogleSignIn")
- jvm: /*nothing here yet, just stubs to fulfill the api*/
:common
- commonMain: implement(":google-sso")
- cocoapods: extract(":google-sso")
:iosApp (this is the iOS native codebase)
- pod 'common' => '../common'
Surprisingly, that structure didn't work, I keep getting ld: framework not found GoogleSignIn
.
I even tried to add a pod 'GoogleSignIn'
into the iosApp
pods, but no luck.
Am I missing something and it's not possible to have cocoapods pod in "not-main" KMM module (aka common
in my case) ?
P.S. Obviously, no issues on the android implementation, only on the iOS sidea-dd
11/14/2023, 2:55 PMpod("GoogleSignIn", linkOnly=true)
to common
Andrii Yanechko
11/14/2023, 3:33 PM*Showing All Issues* > 'env pod install' command failed with an exception:
Showing All Issues
env: pod: No such file or directory
Full command: env pod install
Possible reason: CocoaPods is not installed
Please check that CocoaPods v1.10 or above is installed.
To check CocoaPods version type 'pod --version' in the terminal
To install CocoaPods execute 'sudo gem install cocoapods'
However, when I run pod install
from the terminal - it works (but the app still not building)
P.S. my pod --version
is
1.14.2
Cas Van Luijtelaar
11/14/2023, 4:05 PMa-dd
11/14/2023, 4:06 PM--stacktrace
or --info
Andrii Yanechko
11/14/2023, 4:48 PMpod("GoogleSignIn", linkOnly=true)
helped mea-dd
11/14/2023, 4:53 PMXCode during the building phase execute a Gradle tasksJFYI you can pass additional flags to Gradle by editing script in the build phase