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:

Screen Shot 2019-06-30 at 12 02 07

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 31 (12 by maintainers)

Commits related to this issue

Most upvoted comments

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 run cordova prepare && cordova build ios, and expect it to fail with something like:

ld: framework not found Pods_______

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?

If it helps in any way, I tried the test project with this version of the firebase plugin. Build went fine.

That version doesn’t use cordova-plugin-cocoapod-support so drops support for cordova-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-supportx to be smarter so it only parses plugin variables if using cordova-ios@5 and 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