firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.56k stars 1.45k forks source link

iOS framework with firebase Carthage binary, ask for firebase when deployed in ios app !!! #6189

Closed soufianee closed 4 years ago

soufianee commented 4 years ago

Hi,

i have created a framework in Xcode using the firebase Carthage binary to run the firebase in device text extraction. In my Mac it works fine with the test project.

unfortunately, when I shared with the integrator still get the error cam t find firebase framework. with is already linked with my framework in build time.

here is the capture of framework linked in my project :

Capture d’écran 2020-08-03 à 13 23 08 Capture d’écran 2020-08-03 à 13 23 52
google-oss-bot commented 4 years ago

I found a few problems with this issue:

paulb777 commented 4 years ago

@soufianee Please make sure that your framework is statically linked. See https://github.com/firebase/firebase-ios-sdk/blob/master/docs/firebase_in_libraries.md

soufianee commented 4 years ago

hi,

thank you for your response, I have to mention that I work with dynamique framework. all the setting required is set.

any idea please ??

paulb777 commented 4 years ago

As documented in https://github.com/firebase/firebase-ios-sdk/blob/master/docs/firebase_in_libraries.md, Firebase does not support linkage into a dynamic framework.

soufianee commented 4 years ago

hi,

i do the same thing but now I create a static library. but still same issues.

soufianee commented 4 years ago
Capture d’écran 2020-08-03 à 18 23 39
morganchen12 commented 4 years ago

Can you share the build error from Xcode?

soufianee commented 4 years ago
Capture d’écran 2020-08-03 à 20 53 15
morganchen12 commented 4 years ago

Can you export the full build log and share it here or upload a sample project?

soufianee commented 4 years ago

this is all I have in the build log. I add the search path to the generated modules.

for information, is working for the framework creator.

here's the project folder :

Capture d’écran 2020-08-03 à 21 34 43
morganchen12 commented 4 years ago

You should be able to get the full build log by clicking the error in the left panel and then clicking the Export button at the top of the screen.

If you're unable to do so, can you share your project?

soufianee commented 4 years ago

here's the exported file :

x86_64-apple-ios-simulator.txt

also in the following we found the test project :

sdkTest_v7.zip

morganchen12 commented 4 years ago

There's a few issues here:

Since none of these issues are Firebase issues, you may have more success asking for help in a forum like StackOverflow.