cordova-plugin-firebasex: Pods GoogleUtilities fatal error

Bug report

CHECKLIST

  • I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
  • [x ] I have checked that no similar issues (open or closed) already exist.

Hi Dave, I have combed through stackoverflow, through the plugin docs and other resources and still can’t resolve this. I suspect it has something to do with the Pods < - > Cordova@9/cordova-ios@5 issue or it could be some version compatibility issue since everything is on the latest and greatest. But I can’t be certain either assumption.

Since this is a fresh install on a brand new Mac everything is using the latest and greatest versions of everything. I also verified all my pods are up to date.

Current behavior: Build fails during CLI ionic Cordova build iOS

** Plugin vs Your own code** Fresh install on new Mac computer. Just built the environment, no errors and ported all GOOD code from previous Mac that is working/compiling fine…but on older versions of environment

Expected behavior: clean cli compile

Steps to reproduce: Fails on every build from cli

Screenshots

Environment information Ionic: Ionic CLI : 6.10.1 (/usr/local/lib/node_modules/@ionic/cli) Ionic Framework : ionic1 1.0.0 @ionic/v1-toolkit : 1.0.22 Cordova: Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : ios 5.1.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 32 other plugins) Utility: cordova-res : 0.15.1 native-run : not installed System: ios-deploy : 1.10.0 ios-sim : 8.0.2 NodeJS : v14.5.0 (/usr/local/Cellar/node/14.5.0/bin/node) npm : 6.14.5 Cocoapods: 1.9.3 OS : macOS Catalina Xcode : Xcode 11.5 Build version 11E608c

Console output

Error: /Users/rpo/dev/myApp/platforms/ios/Pods/GoogleUtilities/GoogleUtilities/AppDelegateSwizzler/Private/GULAppDelegateSwizzler.h:19:9: fatal error: 'GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h' file not found #import "GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/rpo/dev/myApp/platforms/ios/Pods/GoogleUtilities/GoogleUtilities/AppDelegateSwizzler/Private/GULAppDelegateSwizzler.h:19:9: note: did not find header 'AppDelegateSwizzler/Private/GULApplication.h' in framework 'GoogleUtilities' (loaded from '/Users/rpo/dev/myApp/platforms/ios/build/emulator') 1 error generated. The following build commands failed: CompileC /Users/rpo/Library/Developer/Xcode/DerivedData/WHIPSTER-fbocyrfnyhrizhfbhadoplqyjoae/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FirebaseAuth.build/Objects-normal/x86_64/FIRAuth.o /Users/rpo/dev/myApp/platforms/ios/Pods/FirebaseAuth/FirebaseAuth/Sources/Auth/FIRAuth.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) xcodebuild: Command failed with exit code 65

// Paste any relevant JS/native console output here



Other information:

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 19 (5 by maintainers)

Most upvoted comments

@keeepon - yeah, I think I have been staring at my screen too long and just glazed right over the obvious. I am on firebasex@10.1.0 too. I modified the plugin in my root project then removed the platform iOS and readded it again, now its hanging during the platform add iOS

Installing "cordova-plugin-firebasex" for ios
Plugin dependency "cordova-plugin-androidx@2.0.0" already fetched, using that version.
Dependent plugin "cordova-plugin-androidx" already installed on ios.
Plugin dependency "cordova-plugin-androidx-adapter@1.1.1" already fetched, using that version.
Dependent plugin "cordova-plugin-androidx-adapter" already installed on ios.
Running command: pod install --verbose
     Cloning into '/var/folders/jh/2c6ccmp12wz91ldjjf44q5b40000gn/T/d20200714-51318-r76e34'...

May have to rebuild my whole project now and try modifying the plugin before its added to my project.

Edit: well, its not hung…but this “cloning” is taking forever…gonna wait it out and see what happens.

The fix has been published in cordova-plugin-firebasex@10.1.1 and cordova-plugin-firebasex@10.1.1-cli. Please update to this version.

@keeepon: I have created a PR with your change

Firebase iOS has been updated to 6.28.0.

Firebase iOS Release Notes https://firebase.google.com/support/release-notes/ios

I fixed the version of Firebase iOS in plugin.xml from 6.27.0 to 6.28.0 and the build was successful.

https://github.com/dpa99c/cordova-plugin-firebasex/blob/10.1.0-cli/plugin.xml#L126-L140

<podspec>
  <config>
    <source url="https://cdn.cocoapods.org/"/>
  </config>
  <pods use-frameworks="true">
    <pod name="Firebase/Core" spec="6.28.0"/>
    <pod name="Firebase/Auth" spec="6.28.0"/>
    <pod name="Firebase/Messaging" spec="6.28.0"/>
    <pod name="Firebase/Performance" spec="6.28.0"/>
    <pod name="Firebase/RemoteConfig" spec="6.28.0"/>
    <pod name="FirebaseFirestore" git="https://github.com/invertase/firestore-ios-sdk-frameworks.git" tag="6.28.0"/>
    <pod name="Firebase/Crashlytics" spec="6.28.0"/>
    <pod name="GoogleSignIn" spec="5.0.2"/>
  </pods>
</podspec>