Hello guys, I'm trying to integrate <Braze SDK> in...
# multiplatform
s
Hello guys, I'm trying to integrate Braze SDK into my multiplatform project using Cocoapods plugin, I've use Cocoapods for some other framework and it's work fine. But when press run the app I got error:
Copy code
Execution failed for task ':shared:linkPodDebugFrameworkIosSimulatorArm64'.
I changed to run it on physical device then get another error:
Copy code
Execution failed for task ':sdk:linkPodDebugFrameworkIosArm64'.
Can anyone explain why and how to fix it? Below is my cocoapods setup in build.gradle:
Copy code
cocoapods {
        version = "1.16.2"
        ios.deploymentTarget = "16.0"
        homepage = "<http://fake-home-page.com>"
        summary = "My library summery"
        license = "SonHoang"

        pod("mParticle-Apple-SDK") {
            version = "~> 8.35.0"
            extraOpts += listOf("-compiler-option", "-fmodules")
        }

        pod("Singular-SDK") {
            moduleName = "Singular"
            version = "12.8.1"
        }

        pod("BrazeKit") {
            version = "12.1.0"
            extraOpts += listOf("-compiler-option", "-fmodules")
        }

        framework {
            isStatic = false
            linkerOpts(
                "-framework", "CoreGraphics",
                "-framework", "StoreKit",
                "-framework", "SystemConfiguration",
                "-framework", "UserNotifications",
                "-lsqlite3",
                "-lswiftCompatibilityConcurrency",
                "-lswift_Concurrency",
                "-lswiftCore",
                "-lswiftFoundation",
                "-lswiftObjectiveC",
                "-lswiftDarwin",
                "-lswiftDispatch"
            )
        }


        podfile = project.file("../iosApp/Podfile")
    }