cordova-plugin-firebasex: iOS builds fail if first build is from CLI
Thanx a ton for reviving this plugin!
I managed to make it work for android, as described here.
However, I fail to do so for ios.
When I run cordova run ios, the app starts and immediately crashes.
When I try to run it from xCode, this is what I get:
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 31 (12 by maintainers)
Commits related to this issue
- Drop dependency on cordova-plugin-cocoapodsx to install pod dependencies. Instead set min supported versions to cordova@9 and cordova-ios@5 and update plugin.xml to use podspec formatting as required... — committed to tommy-hartz/cordova-plugin-firebasex by tom-hartz 5 years ago
- Revert "Drop dependency on cordova-plugin-cocoapodsx to install pod dependencies. Instead set min supported versions to cordova@9 and cordova-ios@5 and update plugin.xml to use podspec formatting as r... — committed to tommy-hartz/cordova-plugin-firebasex by tom-hartz 5 years ago
I finally managed to localize the problem.
In the test project, change the
<name>FirebaseTest</name>with something outside the latin alphabet, eg:<name>кромид</name>. Save and runcordova prepare && cordova build ios, and expect it to fail with something like:Phew. Does it look fixable?
I see that some sort of namespace is created based on the app name, but somewhere along the way, the encoding does not translate properly.
@AMerkuri does your app have a non-latin name?
That version doesn’t use
cordova-plugin-cocoapod-supportso drops support forcordova-ios@4. However it hard-codes the Firebase SDK version numbers in the podspecs which I’m not keen on doing as it can lead to further version collisions with other plugins.I may be able to modify
cordova-plugin-cocoapod-supportxto be smarter so it only parses plugin variables if usingcordova-ios@5and leaves Cordova to do the actual installation of the pods which I think would resolve the issue.What solved the issue for me was adding the $(inherited) to Library Search Path as mentioned over here: https://stackoverflow.com/questions/24050012/error-library-not-found-for