I have a KMP + CMP project, which has the followin...
# multiplatform
v
I have a KMP + CMP project, which has the following structure
Copy code
- androidApp
- iosApp
- shared
    - core
    - data
    - domain
    - ui
And I am using cocoapods, now each of the shared submodules have some pod dependencies all the submodules and the pod dependencies are only used internally like
implementation(project(":shared:core"))
in shared module and not exposed to
iosApp
Do i need to add the podfiles of all the shared sub-modules in the
iosApp/Podfile
even though, those are not used in the native Swift side? This is how my iosApp/Podfile looks
Copy code
target 'Medial' do
  use_frameworks!
  platform :ios, '14.1'

  pod 'shared', :path => '../shared'
  pod 'shared-core', :path => '../shared/core'
  pod 'shared-ui-screens', :path => '../shared/ui/screens'
  pod 'shared-chat', :path => '../shared/chat'

  pod 'FirebaseAnalytics'
  pod 'FirebaseCrashlytics'
  pod 'Siren'
  pod 'BranchSDK'
end
but If i remove the submodules from this, i get undefined symbols issue when building iOS
s
@Vaibhav Jaiswal Don't know how much this article will help you but check it out to for adding modularization support in KMP project https://medium.com/@santimattius/kmp-for-mobile-native-developer-part-4-modularization-7b712a5d5e99