Hi Folks. Facing this error for last 8 hours, ```...
# multiplatform
s
Hi Folks. Facing this error for last 8 hours,
Copy code
Showing Recent Errors Only
Executing of 'xcodebuild -project Pods.xcodeproj -scheme FirebaseAuth -destination generic/platform=iOS Simulator -configuration Debug' failed with code 65 and message: 

/Users/sagarkhurana/AndroidStudioProjects/Foo/iosApp/  clang:1:1: linker command failed with exit code 1 (use -v to see invocation)
I have
FirebaseAuth
in the Cocoapods block of build.gradle.kts because I need it in my iOS sourceset, but facing issues, any help would be appcreciated
b
Cocoapods has been the most difficult part of KMP for me so far. Checklist: • Have you run pod install • Have you opened up the xcworkspace file it created yet • Is your podspec linked in your pod file What does the cocoapods section of your build.gradle.kts look like? Also there's a bug in Xcode 18.4 so I had to downgrade back to 18.2. Check that you're not on 18.4
s
Only things fears me in CMP/KMP is adding dependencies especially on iOS side
b
I will say, I had issues with firebase and cocoapods so I ended up using SPM for them and cocoapods for other things that didn't have an SPM equivalent
s
I gave up using Firebase from the iosSource set via the cocoapods and instead relied on the Gitlive Firebase dependency. Even then, I encountered issues building the project, but later this command saved me:
Copy code
./gradlew podDebugIosFatFramework
I'm on Xcode 16.0. The library I ended up using - https://github.com/GitLiveApp/firebase-kotlin-sdk