Hi Friends! After adding Cocoapods to the compose ...
# multiplatform
h
Hi Friends! After adding Cocoapods to the compose multiplatfor project I started to get the following error while trying to run the iOS App.
Copy code
no such module 'ComposeApp'
ContentView.swift
Copy code
import UIKit
import SwiftUI
import ComposeApp

struct ComposeView: UIViewControllerRepresentable {
    func makeUIViewController(context: Context) -> UIViewController {
        MainViewControllerKt.MainViewController()
    }

    func updateUIViewController(_ uiViewController: UIViewController, context: Context) {}
}

struct ContentView: View {
    var body: some View {
        ComposeView()
                .ignoresSafeArea(.keyboard) // Compose has own keyboard handler
    }
}
What I assume is that cocoapods dependency manager replaced another dependency mechanism that used to be before and that's why the iOS app doesn't recognize the ComposeApp module. Any idea how can I fix it?
m
I have been stuck with a similiar issue. It started to break down when i added more modules. The only way i have got it to work is by jetbrains official example repo
h
Ah, I just noticed there is a cocoapods example repo, thanks a lot, will check it out!
👍 1
m
If you figure out a way to use multiple modules and still use cocopods please notify me.
👍 1