反应本机火力地堡。特定于平台的安装。在哪里获取包 ID?

React Native Firebase. Platform specific installation. Where to get bundle ID?

我正在进行特定于平台的安装,iOS。 说明书上说:

A GoogleService-Info.plist file contains all of the information required by the Firebase iOS SDK to connect to your Firebase project. To automatically generate the plist file, follow the instructions on the Firebase console to "Add Firebase to your app".

我进入控制台并按"Add Firebase to my iOS app"。 在那里我应该输入一些必需的 iOS 捆绑包(数据包)ID。据说在我的xcode项目中可以看到。但是我不用xcode,我用的是react native。我在哪里可以找到这个 ID?

在下面打开你的项目 projectroot/ios

从文件夹菜单中单击您的项目,select 您的目标,然后转到 'General' 选项卡。 在那里你会找到 'Bundler Identifier'.

我自己想好了该怎么做。 我已经使用 react-native init projectname 创建了 React Native 项目。 在这种情况下,android 项目和 ios 项目分别在 android 和 ios 文件夹的根目录中创建。 您需要打开 Xcode 中的 ios 文件夹,然后在“常规”选项卡中您可以看到 ID(如 Brockify 所说;他唯一没有告诉我的是如何创建 ios 项目) .