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

iOS build failing (cocoapods) #35

Closed
mbunby opened this issue Jul 5, 2019 · 3 comments
Closed

iOS build failing (cocoapods) #35

mbunby opened this issue Jul 5, 2019 · 3 comments
Labels
awaiting response If no response, issue will be closed support Support is being requested but not a necessarily a bug

Comments

@mbunby
Copy link

mbunby commented Jul 5, 2019

Describe the bug
ios build fails as the build tools cannot find/build the frameworks installed via cocoapods.

To Reproduce
this is restoring a platform after removing the plugins, platforms and node_modules directories.

cordova prepare ios
Screenshot 2019-07-05 at 11 47 43
it looks like it has installed the plugin correctly.

but when it runs the podify.js hook 'after_prepare' it hasn't found any pods to install. if i cd into the xcode project dir and run pod install manually, still cannot find them as the pod file is still empty.
Screenshot 2019-07-05 at 11 51 07

if i run cordova prepare ios a second time, podify.js does find the pods and installs them.
Screenshot 2019-07-05 at 12 16 32

then, when i try to build cordova run ios --noprepare --device --debug it looks like it errors trying to use the dependencies of the dependencies listed in the pod file.
Screenshot 2019-07-05 at 12 22 39

but looking back through the console log...
Screenshot 2019-07-05 at 12 24 44
the linker cannot find any of the frameworks. i checked those paths in 'DerivedData' dir and there is nothing there. interestingly, the path to the xcode project pod dir has a nested '/Pods/' that isn't meant to be there. e.g. /platforms/ios/Pods/Pods/Crashlytics/iOS.

i hope someone can point me in the right direction where it's going wrong. i've been looking at this for a couple of days now and i'm stumped. any help is greatly appreciated.

for android, it works totally fine!

Expected behavior
install plugin and setup/install pod file dependencies after the first time run cordova prepare ios, so ios app builds successfully.

Plugin Version
cordova-plugin-firebasex 3.0.8 "Google Firebase Plugin"

other stuff:
xcode 10.1
cordova 8.0 & 9.0
cordova-ios 4.3.1
node 8.12.0
npm 6.4.1

@dpa99c
Copy link
Owner

dpa99c commented Jul 5, 2019

I suggest cloning and trying to build this example project.
It builds and runs fine in my (and other dev's) environments so you should be able to use it to validate your build environment. If that works OK, then it's likely to be something specific in your other project causing the issue e.g. a conflict with another plugin.

@dpa99c dpa99c added help wanted Collaboration wanted on this issue awaiting response If no response, issue will be closed labels Jul 5, 2019
@mbunby
Copy link
Author

mbunby commented Jul 8, 2019

i tried building your example project, but it failed to build through the cli for some reason - unrelated to this issue though. it did build in xcode, and so does my project, as it turns out.

since we were using an old version of cordova-ios, i figured i'd try out the latest version of it (5.0.1). using the latest version works. not sure if anyone else has had success building with cordova-ios 4.3.1? is anyone even using that version anymore? we still need ios 8 support, unfortunately. so we can't update to the latest version just yet.

looks like the plugin is all good!

i just want to say thanks for replying and for maintaining this plugin. it really helped us out getting our android build working again 👍

@mbunby mbunby closed this as completed Jul 8, 2019
@dpa99c
Copy link
Owner

dpa99c commented Jul 8, 2019

There is an outstanding issue with building iOS from the CLI: #22
I hope to be able to resolve it while retaining the ability to support user-overridable versions for the Firebase SDK component version on iOS.

@dpa99c dpa99c added support Support is being requested but not a necessarily a bug and removed help wanted Collaboration wanted on this issue labels Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting response If no response, issue will be closed support Support is being requested but not a necessarily a bug
Projects
None yet
Development

No branches or pull requests

2 participants