-
-
Notifications
You must be signed in to change notification settings - Fork 469
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 freeze #5
Comments
Note, don't know if this is related but I do see the following warning at the begin of the build:
|
can you post config.xml plugins and package.json ? |
@dann95 sure. I was able to reproduce the problem in a sample minimal project, here's the repo: https://github.com/peterpeterparker/ios-build-freeze |
Same problem: If I cancel de build and then go to xCODE and deploy to device it works perfectly
|
Will look into this today |
I've tried to reproduce this issue in an isolated test case using the following commands:
But the build succeeds: console log Please try the above commands in your environment and report the result. |
thx @dpa99c I could confirm that using the exact same commands as you I don't face the problem neither On the other side when I do try out again the sample repo I provided in a fresh install I still face the error Incompatibility with another plugin maybe? |
What do this?
|
@Hanzofm it downloads a dummy iOS configuration file for the Firebase plugin. |
@peterpeterparker I'll clone your sample repo and investigate |
thx a lot Dave for all your effort! |
Some interesting results when testing with your project. So I did:
And in this case I can replicate your observed results: the build command hangs on the But if I do the same and instead use the Cordova (instead of Ionic) CLI to build, it doesn't hang and builds OK:
And if I remove
I've no idea why it hangs with Ionic CLI and not Cordova but my recommendation would to be repeat my tests above and if it works OK using ionic CLI to prepare the platform and cordova CLI to build it, then go with this as a workaround for now. |
excellent @dpa99c I'm agree and could confirm with your finding. For now one the following target/workaround does the job:
Should we ping the Ionic-cli repo? |
it does seem related to Ionic so might be worth opening an issue there and linking to this one |
Agree @dpa99c I have opened and issue in the Ionic CLI repo (ionic-team/ionic-cli#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 👍 |
a quick update:
|
Awesome @dpa99c ! I confirm that it solves the issue, I was able to build my app (I skipped the sample repo and tried it directly in my app) using Thx a lot! |
I've published the current master branch of this plugin as |
It works like a charm, thx a lot @dpa99c ! |
what is solved in 2.0.7? |
the generated Podfile. |
Then, now is possible to install normally? |
Yes |
@remifleurance maybe open a new issue? I'm (still) good and mine was solved with v2.0.7 of the plugin, so maybe something changed since then |
@remifleurance I just tried the following test with v2.1.2 and the iOS build succeeded:
Please try the same in your environment. Note: I used package ID |
Thanks for you answers @peterpeterparker I tried with 2.0.7 too, but the issue is still here @dpa99c I gave it a try using my own package ID
is not freezing anymore. But I still have the same error on Xcode. I'm using Xcode 10.1, Node 10.15.3 and Cordova 9.0.0 |
Ok, after trying different things I was able to solve this issue. So in Xcode I went to :
and opened Pods/Pods.xcodeproj Not sure if this is how Pods.xcodeproj is supposed to be included ? |
If you open |
Oh ok. I'm a beginner in Xcode, Cocoapods etc... |
@dpa99c Hi, we have the same issue as this iOS build freeze #5 ionic info Ionic: ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic) Cordova: cordova (Cordova CLI) : 9.0.0 ([email protected]) System: Android SDK Tools : 26.1.1 (/Users/macshack/Library/Android/sdk) config.xml plugins |
@JohnMokgokong I suggest the following:
|
I am facing the same problem freezes in:
I am using 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
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 CLI : 5.2.3 (/Users/afelipel/.npm-global/lib/node_modules/ionic) Cordova: Cordova CLI : 9.0.0 ([email protected]) Utility: cordova-res : not installed System: ios-deploy : 1.9.4 cordova plugin list cc.fovea.cordova.purchase 7.4.3 "Purchase" |
same problem in ios 5.0.1 Ionic: ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic) Cordova: cordova (Cordova CLI) : 9.0.0 ([email protected]) System: ios-deploy : 1.9.2 |
Same issue. ionic Cordova build on iOS is freeze on ProcessPCH Ionic CLI : 5.2.4 (/usr/local/lib/node_modules/ionic) Cordova: Cordova CLI : 9.0.0 ([email protected]) Utility: cordova-res : not installed System: Android SDK Tools : 26.1.1 (/Users/mobiledev/Library/Android/sdk/) |
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. |
I'm having the same issue using |
I was running v6.0.7 but the update: I then reattached my test iPhone, did I then tried with `ionic cordova build ios --buildFlag='-UserModernBuildSystem=0', with phone attached to Mac, and it still hung. |
I have the same issue also without attaching an iphone |
In case it helps someone: I restarted my mac and it was working fine until I had the same issue again. Then I restarted the shell (terminal) and it built fine. I can't really explain it but thought I'd give the tip. |
@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. |
@dpa99c It's a strange error ... it occurs when I use the command with '--device' and in a new project that I have never opened in Xcode. If I use Xcode (10.3) the project will work. I try:
Obs.: I use build.json so I don't need to open Xcode for sign for me, workarounds are:
For now in CI i use --buildFlag='-UserModernBuildSystem=0' |
@theopavan yes, since |
👋 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!
|
@dpa99c, @dwieeb With the latest 5.3.0 version of Ionic CLI I'm seeing success with Create Base Projectionic start pch-hang-test-base blank --type=ionic-angular && cd pch-hang-test-base
ionic cordova platform add ios
cd .. Test
|
This has been fixed in Ionic CLI 5.4.1 by ionic-team/ionic-cli@44697cf |
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... |
Describe the bug
Hi Dave,
I installed the plugin as described in your comment in (arnesson#1081 (comment)).
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: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
The text was updated successfully, but these errors were encountered: