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

Anton Kondratiuk

03/27/2024, 9:02 AM
Hello everyone! Currently, we're using KMP for our applications. The iOS application pulls dependencies both via CocoaPods (such as Google Maps) and via cinterop and Carthage. In short, the structure looks like this: • app --depsOn--> common • iosApp • common --depsOn--> shared - (Carthage + CocoaPods) However, the latest versions of Firebase do not support Carthage, so we had to migrate all Carthage dependencies to CocoaPods. After the migration, the build time skyrocketed to 52 minutes. Do you have any ideas on where to start looking into this issue, and have you encountered anything similar? What we've investigated so far: • Linking consumes a lot of time. • compileKotlinIosArm64 takes up a lot of time. • Calling a script related to CocoaPods consumes a lot of time. /Users/github-runner/Library/Developer/Xcode/DerivedData/app/Build/Intermediates.noindex/ArchiveIntermediates/Production-Release/IntermediateBuildFilesPath/Pods.build/Production-Release-iphoneos/app.build/Script-hash.sh • We've tried pushing CocoaPods directly into the repository and experimented with pod caching libraries. However, this only reduced the build time by a 3 minutes
@Parthasarathy FYI
@Johannes Svensson
6 Views