'checkBuildEnvironment' not found on a KMM project with Cocoapods
PhilipDukhov opened this issue · 3 comments
I'm using build checks on a kotlin multiplatform project. At first I was using a regular setup (project generated with the android studio plugin), and it worked well. But then I moved my shared project to cocoapods using this guide, build checks started failing with the following error:
* What went wrong:
Task 'checkBuildEnvironment' not found in project ':shared'.
I'd created a sample project which shows the error
In case you don't have Xcode, you can just test it with
./gradlew -p shared :shared:syncFramework -Pkotlin.native.cocoapods.target=ios_x64 -Pkotlin.native.cocoapods.configuration=Debug -Pkotlin.native.cocoapods.cflags= -Pkotlin.native.cocoapods.paths.headers= '-Pkotlin.native.cocoapods.paths.frameworks= "shared/build/cocoapods/framework"'
that's the command run by xcode in order to build the module.
Thanks for the sample! We'll look into it.
Before a fix, you can disable the plugin by avito.build-checks.enabled
property in gradle.properties.
Can you please explain the reasons to use a custom project dir in a sample?
./gradlew -p shared :shared:syncFramework
The shared
module is a regular module, not an included build. I don't see a difference with a variant with a default project dir:
./gradlew :shared:syncFramework
it's generated by cocoapods plugin, I don't know the reasons🤪