Skip to content

Conversation

paulb777
Copy link
Member

Restore Firestore build after #4940 broke it because of the abseil dependency.

With this change, a zip with xcframeworks for all the Podfile dependencies of the Firestore quickstart now build.

The quickstart fails to build because FirebaseUI does not have an umbrella header necessary for Swift module imports. The proper way to build static libs in CocoaPods with modular headers is the use_modular_headers! option but that does now work with Firestore because gRPC does not work with them. See grpc/grpc#20631 and CocoaPods/CocoaPods#9023.

Next step is to investigate the feasibility of fixing CocoaPods/CocoaPods#9023. In the meantime sending the PR here to checkpoint.

Here is the json file for the Firestore quickstart:


[
  {
    "name": "FirebaseFirestore"
  },
   {
    "name": "FirebaseUI/Auth"
  },
   {
    "name": "FirebaseUI/Email"
  },
   {
    "name": "SDWebImage"
  },
   {
    "name": "FirebaseAuth"
  }
]

@paulb777 paulb777 added the zip-builder Tools related to building the zip file. label Feb 29, 2020
@paulb777 paulb777 requested a review from ryanwilson February 29, 2020 00:46
fatalError("Multi-layered subspecs are not supported - \(podName)")
} else if subspecArray.count == 1 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this else statement just for abseil before?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

abseil was falling into the error case before since it has a two-layered subspec. Now we still error out on two-layer subspecs except for abseil.

@paulb777 paulb777 merged commit b761710 into xcframework-master Mar 2, 2020
@paulb777 paulb777 deleted the pb-build-firestore branch March 2, 2020 15:57
paulb777 added a commit that referenced this pull request Mar 6, 2020
paulb777 added a commit that referenced this pull request Mar 13, 2020
doudounan pushed a commit that referenced this pull request Mar 19, 2020