-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
FirebaseFirestore Prevents Project From Archiving #3884
Comments
I'm able to archive the Firestore quick start with Xcode Version 11.0 (11A419c) Perhaps, the Xcode is in a bad state? - clean and |
Before filing this bug report I cleaned the DerivedData folder and the issue still occurred. Other people are also experiencing this problem: |
@CentrumGuy Are you able to archive the Firestore quick start? |
Yeah, I just tested the Firestore quickstart on Xcode 11, GM seed 2 and was able to archive the project |
I tried adding some of the pods from my other project that has this issue. The podfile for my FirestoreExample project now looks like this:
During archiving, Xcode now gets stuck on task 5309 of 5409 with a process for "FirebaseUI". Seeing that this is an issue with a different Firebase framework than my other project and that this issue happens with the addition of other pods, I'm thinking that this might be due to two firebase pods interfering with one another. I'm not really an expert on the matter and I don't know if that's even a possibility but I'm writing it here because I think it's worth taking a look at. Bonus |
I have a similar issue, but for me it gets stuck on FirebaseInstanceId during archiving. It seems the issue is inconsistent in which pod it happens in per project. In terms of Firebase pods I have only “Firebase/Analytics” and “Firebase/AdMob” added to my podfile. |
@CentrumGuy The issue reproduces for me with that Podfile on the Firestore quickstart. The build hangs after FirebaseUI finishes building with two swift jobs running at 100% in Activity Manager. Since the infinite loop is definitely an Xcode problem, I recommend sending an issue to Apple. |
I sent a bug report to Apple. I will update this issue when they respond. Are you sure this has nothing to do with Firebase? |
Thanks for sending the bug report. There's definitely an Apple bug since Xcode shouldn't infinite loop no matter what input it gets. It's possible something about the Firebase pods are causing an incorrect Xcode workspace, but in that case, it's more likely a CocoaPods issue, since the Firebase pods work fine in smaller Podfile subsets. |
If it's any help figuring out the issue (or a workaround), I've tried to archive my project containing Firebase pods using the
It seems like it's hanging on a simple It also seems this hang isn't necessarily related to the archive process itself but to the build process it relies on. It happens anytime you build the project for release, even when not related to archiving. For example the following simple build command works fine: While the following command hangs:
|
I think I found the culprit. The issue seems to stem from a bug in the Swift optimizer code which has been fixed here apple/swift@378c6ad#diff-8b0154fba360507e6f59f3a0c8e98d1a but hasn't made it to XCode yet. Removing SwiftSoup from my podfile and regenerating the pods project (using Hopefully either SwiftSoup or Apple comes with a new release fixing this issue soon. |
Good find @leonluc-dev! Thanks! Closing in favor of scinfu/SwiftSoup#125 and an Xcode update for the Swift compiler |
[READ] Step 1: Are you in the right place?
file a Github issue.
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Firebase Firestore doesn't allow archiving on Xcode 11. After trying to archive my app multiple times and changing build settings, cleaning pods, uninstalling and reinstalling my pods, deleting the derived data folder, cleaning the build folder, and restarting Xcode and my computer, the archiving process always gets stuck on an arbitrary task while archiving with FirebaseFirestore. I've let the bar hang on that task for around 2 hours and it hasn't moved to the next task so I'm assuming it never will.
Steps to reproduce:
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
Using Xcode 11, archive an app that has the FirebaseFirestore pod installed
Relevant Code:
N/A
The text was updated successfully, but these errors were encountered: