akaffenberger / firebase-ios-sdk-xcframeworks

A small mirror for https://github.com/firebase/firebase-ios-sdk, to add support for binary (xcframework) distribution with swift package manager.
MIT License
134 stars 32 forks source link

`ld: framework not found FBLPromises` #21

Closed imWildCat closed 2 years ago

imWildCat commented 2 years ago

Hello, I'm seeing this error:

image

ld: framework not found FBLPromises clang: error: linker command failed with exit code 1 (use -v to see invocation)

Even if I got https://github.com/google/promises/blob/master/g3doc/index.md#add-dependency installed:

image

I'm still seeing the same error:

image
imWildCat commented 2 years ago

Oh my bad! It is due to legacy CocoaPods flags.

akaffenberger commented 2 years ago

Thanks @imWildCat! I was also able to reproduce this by trying to use the package without including the "-ObjC" linker flag in project settings.

Fixed here (includes the linker flag in Package.swift):
https://github.com/akaffenberger/firebase-ios-sdk-xcframeworks/commit/0510538b1b3071e8f8bd4a529545243c07ee4110