question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't run iOS App: :shared:linkDebugFrameworkIos FAILED

See original GitHub issue

Hi,

I’m new to KMM and iOS development so maybe I’m missing something but as soon as I integrate the firebase KMM library, the iOS app stops building.

Issue

I’m not able to start the iOS app after adding Firebase Auth dependency. I’m getting the following error:

> Task :shared:linkDebugFrameworkIos FAILED
e: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors

The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
ld: framework not found FirebaseAuth

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':shared:linkDebugFrameworkIos'.
> Compilation finished with errors

What I did

I created a new KMM project via Android Studio and only added a dependency to Firebase Auth in build.gradle.kts (:shared):

val commonMain by getting {
            dependencies {
                implementation("dev.gitlive:firebase-auth:1.3.1")
            }
        }

I use 1.3.1 because 1.4.0 and 1.4.1 don’t seem to work for Android.

Thank you for your help!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
antanas-radzevicius-tgocommented, Sep 10, 2022

Have you managed to solve the issue?

1reaction
sdelaysamcommented, Nov 1, 2021

adding pod("FirebaseAuth") to my library which uses dev.gitlive:firebase-auth:1.4.3 gives me compile error

java.lang.Error: Linking globals named 'knifunptr_cocoapods_FirebaseAuth3_FIRAuthErrorDomain_getter': symbol multiply defined!
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to Run App on Device | Apple Developer Forums
When I try to run the app on my device directly in Xcode I get the following error. This happens after compiling and...
Read more >
If an app on your iPhone or iPad stops responding, closes ...
If an app on your iPhone or iPad stops responding, closes unexpectedly, or won't open · Close and reopen the app. Force the...
Read more >
If you can't download or update apps on your iPhone or iPad
Try this if you have an issue when you update or download apps from the App Store on your iPhone or iPad.
Read more >
If you can't connect to the App Store, iTunes Store, or other ...
Learn what to do if you see a "Cannot connect" message, if an app won't load anything, or if content stops downloading.
Read more >
If your iPhone or iPad won't update - Apple Support
If you can't install iOS 16 or iPadOS 16.1 on your iPhone or iPad. You might be unable to update your iPhone or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found