cordova-plugin-firebasex: iOS build freeze

Describe the bug Hi Dave,

I installed the plugin as described in your comment in (https://github.com/arnesson/cordova-plugin-firebase/issues/1081#issuecomment-503135862).

With Android, all good, it works like a charm.

With iOS, on the other side, I’m not able to compile/build the app with the command line once I had this plugin to my app.

I use Cordova v9 and NodeJS v12

I tried many times to remove and add platforms and plugins but I always land on the same problem, when I run ionic cordova build ios the build will always freeze respectively it will hang on the following:

ProcessPCH /Users/myProject/platforms/ios/build/sharedpch/SharedPrecompiledHeaders/10438514788408785055/MyApp-Prefix.pch.gch /Users/myProject/platforms/ios/MyApp/MyApp-Prefix.pch normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target: MyApp) cd /Users/myProject/platforms/ios /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x … (a lot of lines) … 8408785055/MyApp-Prefix.pch.dia

Interesting, if I abort the build and open the project in Xcode v10.2.1 I’m able to build the project in Xcode without any problem.

I also tried many times to reboot my laptop (Mac) thinking that maybe a process would remains blocker but nothing helped.

I’m not sure it’s directly related to the plugin, maybe it’s related to Cordova v9(?), but I definitely don’t face it when I remove the plugin.

I’m aware it isn’t probably an issue and most probably more a support question so I hope you will accept my apologies for that. Of course if you don’t face the problem and would close the issue without any comment, that would be absolutely no problem.

Thx for all your cool work and again for your about the other issue of today!

P.S.: A sample repo to reproduce the problem

https://github.com/peterpeterparker/ios-build-freeze

About this issue

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

Commits related to this issue

Most upvoted comments

I am having a similar problem (freezing at Prefix.pch.dia) and noticed that it occurs if I do the build with an iPhone connected to the computer. If I disconnect it, and start the build from scratch, the it ends OK.

👋 For those using the Ionic CLI, I just released 5.3.0 with a fix for this. See CHANGELOG.md. Please feel free to let me know if there are other issues!

npm i -g ionic@latest

I’ve published the current master branch of this plugin as cordova-plugin-firebasex@2.0.7

That’s not for reopening, it’s just to fix a @brownoxford mistake, the correct version of the fix are 5.4.12, not 5.4.1…

@theopavan yes, since ionic cordova prepare ios --prod && cordova build ios --device works but ionic cordova build ios --device does not, I can only conclude the cause of this issue is upstream in the way Ionic wraps the Cordova CLI so isn’t something that can be resolved by this plugin in itself.

@afelipelli - I will try that out. How long did it work until it hung each time?

Obviously something is up with this build of firebasex…its annoying.

I am facing the same problem freezes in:

/myProject/platforms/ios/build/sharedpch/SharedPrecompiledHeaders/5415175148216068724/myProject-Prefix.pch.dia

I am using cordova-plugin-firebasex 3.0.8 “Google Firebase Plugin” cordova-plugin-androidx 1.0.2 “cordova-plugin-androidx” cordova-plugin-androidx-adapter 1.1.0 “cordova-plugin-androidx-adapter”

With this config I am be able to ios build in other projects but in this specific project no.(build via xCode works fine)

this is my pod outdated list

  • Crashlytics 3.12.0 -> 3.12.0 (latest version 3.13.4)
  • Fabric 1.9.0 -> 1.9.0 (latest version 1.10.2)
  • Firebase 6.3.0 -> (unused) (latest version 6.5.0)
  • FirebaseAnalytics 6.0.2 -> 6.0.2 (latest version 6.0.4)
  • FirebaseAuth 6.1.2 -> 6.1.2 (latest version 6.2.1)
  • FirebaseCore 6.0.3 -> 6.0.3 (latest version 6.1.0)
  • FirebasePerformance 3.1.0 -> 3.1.0 (latest version 3.1.1)
  • FirebaseRemoteConfig 4.1.0 -> 4.1.0 (latest version 4.2.1)
  • GoogleAppMeasurement 6.0.2 -> 6.0.2 (latest version 6.0.4)
  • GoogleMaps 2.7.0 -> 2.7.0 (latest version 3.2.0)

I have installed @angular/fire and firebase 6.3.1 npm libraries

Any idea?

Did you find any solution? I’m using cordova-plugin-firebasex 6.0.2 (latest) and still getting this hang when running ionic cordova build ios --prod

ionic info: Ionic:

Ionic CLI : 5.2.3 (/Users/afelipel/.npm-global/lib/node_modules/ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.8

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : android, ios 5.0.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.1, (and 18 other plugins)

Utility:

cordova-res : not installed native-run : 0.2.8

System:

ios-deploy : 1.9.4 ios-sim : 8.0.1 NodeJS : v10.16.0 (/usr/local/Cellar/node@10/10.16.0/bin/node) npm : 6.9.0 OS : macOS Mojave Xcode : Xcode 10.3 Build version 10G8

cordova plugin list

cc.fovea.cordova.purchase 7.4.3 “Purchase” com.synconset.imagepicker 2.1.8 “ImagePicker” cordova-admobsdk 7.37.0 “Google Mobile Ads SDK for Cordova” cordova-launch-review 3.1.1 “Launch Review” cordova-plugin-admobpro 2.37.2 “AdMob Plugin Pro” cordova-plugin-androidx 1.0.2 “cordova-plugin-androidx” cordova-plugin-androidx-adapter 1.1.0 “cordova-plugin-androidx-adapter” cordova-plugin-app-version 0.1.9 “AppVersion” cordova-plugin-crop 0.3.1 “CropPlugin” cordova-plugin-device 2.0.3 “Device” cordova-plugin-enable-multidex 0.2.0 “Enable Multidex” cordova-plugin-extension 1.5.4 “Cordova Plugin Extension” cordova-plugin-facebook4 2.5.0 “Facebook Connect” cordova-plugin-file 6.0.2 “File” cordova-plugin-file-transfer 1.7.1 “File Transfer” cordova-plugin-filepath 1.5.5 “cordova-plugin-filepath” cordova-plugin-firebasex 6.0.2 “Google Firebase Plugin” cordova-plugin-geolocation 4.0.1-dev “Geolocation” cordova-plugin-ionic-keyboard 2.1.3 “cordova-plugin-ionic-keyboard” cordova-plugin-ionic-webview 2.3.1 “cordova-plugin-ionic-webview” cordova-plugin-splashscreen 5.0.3 “Splashscreen” cordova-plugin-statusbar 2.4.3 “StatusBar” cordova-plugin-whitelist 1.3.4 “Whitelist” cordova-plugin-x-socialsharing 5.4.7 “SocialSharing” cordova-sqlite-storage 3.1.0 “Cordova sqlite storage plugin - cordova-sqlite-storage plugin version” es6-promise-plugin 4.2.2 “Promise”

It works like a charm, thx a lot @dpa99c !

Agree @dpa99c

I have opened and issue in the Ionic CLI repo (https://github.com/ionic-team/ionic-cli/issues/4042) and therefore I close this issue. If you would follow the issue I would honestly don’t mind 😉

Thx again for your great plugins and support 👍

@peterpeterparker I’ll clone your sample repo and investigate

Will look into this today

Same problem: /platforms/ios/build/sharedpch/SharedPrecompiledHeaders/8559664710397625761/myproject-Prefix.pch.dia

If I cancel de build and then go to xCODE and deploy to device it works perfectly

Ionic info:

   ionic (Ionic CLI)  : 4.12.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 3.9.2
   @ionic/app-scripts : 3.2.0

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 8.0.0, ios 5.0.1
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 19 other plugins)

System:

   Android SDK Tools : 26.1.1 (/Users/myuser/Library/Android/sdk)
   ios-deploy        : 1.9.2
   ios-sim           : 8.0.1
   NodeJS            : v9.9.0 (/usr/local/bin/node)
   npm               : 5.7.1
   OS                : macOS Mojave
   Xcode             : Xcode 10.2 Build version 10E125
cordova plugin list
cordova-plugin-advanced-http 2.0.1 "Advanced HTTP plugin"
cordova-plugin-android-permissions 1.0.0 "Permissions"
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.0.2 "cordova-plugin-androidx-adapter"
cordova-plugin-cocoapod-supportx 1.6.1 "Cordova CocoaPods Dependency Support"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-firebasex 2.0.6 "Google Firebase Plugin"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-ios-localized-strings 1.0.6 "Cordova iOS Localized Strings"
cordova-plugin-mock-gps-checker 1.0.0 "MockGpsChecker"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-request-location-accuracy 2.2.3 "Request Location Accuracy"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sms-plugin 1.0.0 "Cordova SMS Plugin"
cordova-sqlite-storage 2.6.0 "Cordova sqlite storage plugin"
cordova.plugins.diagnostic 4.0.10 "Diagnostic"