https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
f

Farhazul Mullick

02/23/2024, 6:24 AM
Facing build error with kotlin CocoaPods for integration of Firebase. Any solutions. The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1. output: ld: warning: ignoring duplicate libraries: '-ldl' ld: framework 'FirebaseMessaging' not found
Task sharedlinkDebugFrameworkIosSimulatorArm64 FAILED
error: Compilation finished with errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'sharedlinkDebugFrameworkIosSimulatorArm64'.
Compilation finished with errors
* Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
* Get more help at https://help.gradle.org BUILD FAILED in 2m 34s 32 actionable tasks: 5 executed, 27 up-to-date
Copy code
cocoapods {
    // Required properties
    // Specify the required Pod version here. Otherwise, the Gradle project version is used.
    version = "1.0"

    // Optional properties
    // Configure the Pod name here instead of changing the Gradle project name
    name = "CocoPod"

    ios.deploymentTarget = "14.0"

    framework {
        // Required properties
        // Framework name configuration. Use this property instead of deprecated 'frameworkName'
        baseName = "Core"

        // Optional properties
        // Specify the framework linking type. It's dynamic by default.
        isStatic = false

        // Dependency export
        export(project(":shared"))
        export(project(":shared:core"))

        transitiveExport = false // This is default.

        // Bitcode embedding
        embedBitcode(BitcodeEmbeddingMode.BITCODE)
    }


    pod("FirebaseMessaging")
    pod("FirebaseAnalytics")
    pod("FirebaseRemoteConfig")
    pod("FirebaseCrashlytics")

    // Maps custom Xcode configuration to NativeBuildType
    xcodeConfigurationToNativeBuildType["CUSTOM_DEBUG"] = NativeBuildType.DEBUG
    xcodeConfigurationToNativeBuildType["CUSTOM_RELEASE"] = NativeBuildType.RELEASE
}
f

FYI23

02/23/2024, 10:29 AM
message has been deleted
6 Views