0

I was looking into tutorials about how to build an iOS app with react native and firebase, and they always get the bundle iOS. In my case, since i'm using windows, i went to the project.pbxproj file and search for bundle and found this.

 PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
                PRODUCT_NAME = "$(TARGET_NAME)";
                TEST_HOST = "$(BUILT_PRODUCTS_DIR)/firebase.app/firebase";

Usually in the product_bundle_identifier, they only have like "org.reactjs.native.example". Do you think I have to delete what comes after the dollar sign, or i can just put "org.reactjs.native.example" on the firebase and it will work?

1 Answers1

0

You should not modify anything about that PRODUCT_BUNDLE_IDENTIFIER. Well... OK, maybe you can, but there's no need for it. What you have there are the instructions of how Xcode builds the the final bundle ID, so you can replay them to get the same value.

Look up what your PRODUCT_NAME is (see here and here) and then funnel that through a rfc1034identifier "filter" (pretty much replacing spaces and dots with _, as explained here and here. That will give you the final bundle ID that you need to specify in Firebase.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807