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
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 48 (12 by maintainers)
Commits related to this issue
- modify package.json (#5) — committed to cephalo-ai/cordova-plugin-firebasex by deleted user 5 years ago
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!
I’ve published the current master branch of this plugin as
cordova-plugin-firebasex@2.0.7That’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 --deviceworks butionic cordova build ios --devicedoes 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.
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.diaIf I cancel de build and then go to xCODE and deploy to device it works perfectly