geting below issue after bulding ios build. workin...
# compose-ios
g
geting below issue after bulding ios build. working fine with android. ld: framework 'FBLPromises' not found clang: error: linker command failed with exit code 1 (use -v to see invocation)
also we are using compose multiplatform
j
@Gaurav Tyagi were you able to resolve this?
g
yes
it fix after using pod integration
j
Great, we're currently facing this with a kmp project where we tried using a thirdparty SDK through cocoapods gradle plugin.
> it fix after using pod integration Oh you mean the cocoapods gradle plugin?
g
Copy code
isStatic = true
try with this
Copy code
cocoapods {
    version = "1.0.0"
    summary = "Some description for the Shared Module"
    homepage = "Link to the Shared Module homepage"
    ios.deploymentTarget = "16.0"
    podfile = project.file("../iosApp/Podfile")
    framework {
        baseName = "sharedmodule"
        isStatic = true
    }
    pod("FirebaseAnalytics")
    pod("Adjust")
    pod("CleverTap-iOS-SDK") {
        version = "6.1.0"
        moduleName = "CleverTapSDK"
    }
    extraSpecAttributes["resources"] = "['src/commonMain/resources/**', 'src/iosMain/resources/**']"
}
j
We're doing something like this -
Copy code
cocoapods {
        summary = "CocoaPods custom library"
        homepage = "<https://github.com/JetBrains/kotlin>"
        version = "1.1.5"
        podfile = project.file("../iosApp/Podfile")
        ios.deploymentTarget = "12"

        pod("CustomLib") {
            version = "0.26.0"
            extraOpts += listOf("-compiler-option", "-fmodules")
            source = path(project.file("/Users/user1/Work/XCodeProjects/customLib"))
        }

        pod("FirebaseCrashlytics") {
            version = "10.28"
            extraOpts += listOf("-compiler-option", "-fmodules")
        }
    }
Also,
Copy code
listOf(
        iosX64(),
        iosArm64(),
        iosSimulatorArm64()
    ).forEach { iosTarget ->
        iosTarget.binaries.framework {
            baseName = "shared"
            isStatic = true
            binaryOption("bundleId", "co.hyperverge.myApp.shared")
        }
    }
The difference I see is with the placement of the framework section. Do you see this to be causing the issue?
g
try with cocoapods
j
on it,
Error remains even after moving it to the cocoapods section unfortunately.
Would
ios.deploymentTarget
be of relevance here with the error?
Nope, no difference