Hello everyone, I'm trying to build an Umbrella fr...
# multiplatform
a
Hello everyone, I'm trying to build an Umbrella framework and import it to my iOS app with a local cocoapod integration, but when building the app on XCode I get this error:
Copy code
* What went wrong:
A problem was found with the configuration of task ':umbrella:syncFramework' (type 'FrameworkCopy').
- Type 'org.jetbrains.kotlin.gradle.plugin.mpp.apple.FrameworkCopy' property 'sourceFramework' specifies directory 'REPO_DIRECTORY/umbrella/build/bin/iosSimulatorArm64/podDebugFramework/LegendrShared.framework' which doesn't exist.
In my build.gradle.kts I have the following cocoapod block:
Copy code
iosX64()
iosArm64()
iosSimulatorArm64()

val xcfName = "LegendrShared"
cocoapods {
    version = "1.0"
    summary = "Legendr iOS umbrella framewok"
    homepage = "<https://www.legendr.app/>"
    name = xcfName

    ios.deploymentTarget = "15.6"

    framework {
        baseName = xcfName

        export(projects.shared.data)
        export(projects.shared.di)
        export(projects.shared.domain)
        export(projects.shared.presentation)
        transitiveExport = true
        isStatic = false
    }

    podfile = project.file("../iosLegendrApp/Podfile")

    // Maps custom Xcode configuration to NativeBuildType
    xcodeConfigurationToNativeBuildType["CUSTOM_DEBUG"] = NativeBuildType.DEBUG
    xcodeConfigurationToNativeBuildType["CUSTOM_RELEASE"] = NativeBuildType.RELEASE
}
and in my ios app I have the following Podfile:
Copy code
platform :ios, '15.6'

target 'iosLegendrApp' do
 # Comment the next line if you don't want to use dynamic frameworks
 use_frameworks!
 pod 'LegendrShared', :path => '../umbrella'
end

target 'Presentation' do
 use_frameworks!
 pod 'LegendrShared', :path => '../umbrella'
end

target 'Home' do
 use_frameworks!
 pod 'LegendrShared', :path => '../umbrella'
end

target 'DI' do
 use_frameworks!
 pod 'LegendrShared', :path => '../umbrella'
end
I'm not sure what am I missing. Also I'm using touchlab's skie plugin if this could be related? I can share more about my configuration if necessary 🙂
t
cc @Andrey Yastrebov
a
@Alexis can you share a minimal reproducer project?
a
Working on it)
@Andrey Yastrebov, by the way, I don't get the same error when trying to compile it with Android Studio:
Framework 'Pods_[IOS_POD]' not found
, I don't if that help 🙂
c
hey guys, have you succeed with it?
a
Not using cocoapod at least, in the end I ended up deleting and recreating my umbrella module and exposed it to local SPM packages on the iOS sude