Archie
12/07/2022, 6:47 AMcocoapods
intergration but the problem is I do not know how to integrate them back to a single common
module without an issue. Just wondering if anyone has tried this out? Is it even possible at the moment? Would really appreciate any tips. Thanks in advanceayodele
12/07/2022, 7:20 AMshared
module have those modules as dependencyayodele
12/07/2022, 7:26 AMshared
module should have the cocoapods integration treat the other modules as a Gradle module as you normally would.Archie
12/07/2022, 7:57 AMayodele
12/07/2022, 8:02 AMArchie
12/07/2022, 8:03 AMayodele
12/07/2022, 8:09 AMArchie
12/07/2022, 8:12 AMcocoapods {
...
pod("mylibrary", path = file("pathToLibrary")
...
}
But everytime I try to build the iOS app it just fails. The error is also not very descriptive as well (Or maybe I just don’t know how to read it.).Archie
12/07/2022, 8:15 AMtarget 'iosApp' do
use_frameworks!
platform :ios, '...'
pod 'common', :path => '../commonPath'
pod 'mylibrary', :path => '../mylibraryPath'
end
this also throws the same error I get in the first approach.ayodele
12/07/2022, 8:30 AMArchie
12/07/2022, 8:32 AMayodele
12/07/2022, 8:45 AMshared
can add as dependency.Archie
12/07/2022, 8:49 AMayodele
12/07/2022, 9:19 AMArchie
12/07/2022, 9:22 AMayodele
12/07/2022, 9:52 AMArchie
12/07/2022, 9:53 AMayodele
12/07/2022, 9:54 AMrusshwolf
12/07/2022, 1:37 PMArchie
12/07/2022, 1:51 PMLandry Norris
12/07/2022, 2:21 PMLandry Norris
12/07/2022, 2:22 PMLandry Norris
12/07/2022, 2:24 PMLandry Norris
12/07/2022, 2:28 PMexport(project(":B"))
to the framework block of the cocoapods config.russhwolf
12/07/2022, 2:51 PMLandry Norris
12/07/2022, 2:52 PMArchie
12/07/2022, 2:54 PMLandry Norris
12/07/2022, 2:56 PMimplementation(project(":project-ffmpeg"))
in the commonMain dependencies. the mobileApp module also applies the cocoapods plugin so it can be used by the iOS app as a cocoapod.Landry Norris
12/07/2022, 2:59 PMLandry Norris
12/07/2022, 3:00 PMArchie
12/07/2022, 3:01 PMLandry Norris
12/07/2022, 3:01 PMArchie
12/07/2022, 3:03 PMLandry Norris
12/07/2022, 3:04 PMpod("FFmpegKit")
to the mobileApp cocoapods block due to a bug in cinterop. A module that uses cinterop can’t correctly depend on a module that uses the same cinterop without errors.Landry Norris
12/07/2022, 3:04 PMLandry Norris
12/07/2022, 3:06 PMrusshwolf
12/07/2022, 3:09 PMextraSpecAttributes["dependency"] = "XYZ"
in your cocoapods block if you want to get the dependency into your podspec. It probably won't work if you have more than one pod dependency though, because it's using a map internallyrusshwolf
12/07/2022, 3:10 PMArchie
12/07/2022, 3:10 PMLandry Norris
12/07/2022, 3:11 PMrusshwolf
12/07/2022, 3:11 PMLandry Norris
12/07/2022, 3:12 PMLandry Norris
12/07/2022, 3:13 PMArchie
12/07/2022, 3:16 PMArchie
12/09/2022, 6:56 AM