Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such module 'NSExceptionKtCrashlytics' #28

Closed
haydenkaizeta opened this issue Jul 16, 2024 · 2 comments
Closed

No such module 'NSExceptionKtCrashlytics' #28

haydenkaizeta opened this issue Jul 16, 2024 · 2 comments

Comments

@haydenkaizeta
Copy link

Error when compiling main swift class:

iosApp.swift:5:8: No such module 'NSExceptionKtCrashlytics'

iosApp.swift:

import UIKit
import SwiftUI
import ComposeApp
import FirebaseCore
import NSExceptionKtCrashlytics

@main
struct iosApp: App {
    init() {
        FirebaseApp.configure()
        NSExceptionKt.addReporter(.crashlytics(causedByStrategy: .append))
        MainKt.ContextInit()
        KoinKt.doInitKoin()
    }

    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}

build.gradle.kts:

listOf(
    iosX64(),
    iosArm64(),
    iosSimulatorArm64()
).forEach {
        it.binaries.framework {
            isStatic = true
            export("com.rickclephas.kmp:nsexception-kt-core:1.0.0-BETA-1")
        }
}

        val iosX64Main by getting
        val iosArm64Main by getting
        val iosSimulatorArm64Main by getting
        val iosMain by getting {
            dependencies {
                // ios ktor engine impl
                implementation(libs.ktor.client.darwin)

                // crashlytics special exception handling
                api(libs.nsexception) // com.rickclephas.kmp:nsexception-kt-core:1.0.0-BETA-1
            }
        }
@haydenkaizeta
Copy link
Author

Ah on closer examination I realize I needed the SPM dep. Is there a cocoapods distribution?

@rickclephas
Copy link
Owner

Ah on closer examination I realize I needed the SPM dep. Is there a cocoapods distribution?

No a CocoaPods distribution isn't provided

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants