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

It takes time to build the app for iOS #794

Closed
El-Tommy opened this issue Feb 3, 2023 · 8 comments
Closed

It takes time to build the app for iOS #794

El-Tommy opened this issue Feb 3, 2023 · 8 comments

Comments

@El-Tommy
Copy link

El-Tommy commented Feb 3, 2023

When trying to run cordova build ios while installing the firebasex plugin I noticed that it takes more than 5 minutes to complete the build.
But if I remove the plugin the build takes less than 1 minute.

Is this behavior normal or could there be a problem with my machine?

@ndrake
Copy link

ndrake commented Feb 6, 2023

I'm seeing similar behavior with our app when upgrading to v16.0.0-cli. I haven't attempted to reproduce with the cordova-plugin-firebasex-test project yet. Our app using v14.2.1-cli, averaged an iOS build time of 1 minute 22 seconds. With v16.0.0-cli the average build time is 5 minutes 11 seconds.

If I get some time, I'll attempt to recreate with cordova-plugin-firebasex-test, but I'm not sure when I'll have time to do that.

@El-Tommy
Copy link
Author

El-Tommy commented Feb 6, 2023

Would the v14.2.1-cli and v16.0.0-cli be your Node or NPM version?

@ndrake
Copy link

ndrake commented Feb 7, 2023

Would the v14.2.1-cli and v16.0.0-cli be your Node or NPM version?

Those are the versions of this plugin that I'm using.

@El-Tommy
Copy link
Author

El-Tommy commented Feb 7, 2023

I confirmed, my plugin version is also ^16.0.0.

@dpa99c
Copy link
Owner

dpa99c commented Feb 7, 2023

The cause of longer build times on iOS when using v16+ of this plugin is because it now defaults to using the official (uncompiled) Firestore pod from the Firebase SDK, instead of the (unofficial) pre-compiled version (in v15 and below).
This is because of an issue with using the latest version of the pre-compiled pod in a Cordova build environment.
See #782 and invertase/firestore-ios-sdk-frameworks#62 (comment)

@El-Tommy
Copy link
Author

El-Tommy commented Feb 7, 2023

Thanks for the answer.
I think with that it is possible to close this issue.

@El-Tommy El-Tommy closed this as completed Feb 7, 2023
@roman-rr
Copy link

roman-rr commented Jun 28, 2023

Such increases in building time make rapid development quite difficult.
What do you think @dpa99c, will firebase-sdk come back to the pre-compiled version?
Or maybe is a good time to switch to capacitor development (I guess there is building time much faster than cordova)?

@dpa99c
Copy link
Owner

dpa99c commented Jun 28, 2023

@roman-rr The increased iOS build time is due to compiling the Firestore component of the Firebase SDK.
Cordova/Capacitor are only wrappers around the native Webview that enable a webapp to be deployed as a native app.
Therefore switching to Capacitor will not speed up the build.

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

4 participants