1

I finished a Flutter app and I was preparing the iOS version for release. The Flutter documentation says to add an App ID, but I can't remember what I called it in Flutter. In pubspec.yaml it just has a name setting, but that isn't the bundle name. Also do I use a wildcard name for my app in the iOS settings?

Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393

2 Answers2

5

You can find the package name by looking for the bundle identifier in Info.plist:

<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>

which is found in Runner.xcodeproj/project.pbxproj:

PRODUCT_BUNDLE_IDENTIFIER = com.example.appname;

The Flutter docs specify that you should select the Explicit App ID. Thus, you should use

com.example.appname

and not

com.example.*

Alternative solution

You can also open the ios/Runner folder in Xcode as described in the docs.

See also

Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
1

Register a Bundle ID

Every iOS application is associated with a Bundle ID, a unique identifier registered with Apple. To register a Bundle ID for your app, follow these steps:

Open the App IDs page of your developer account. Click + to create a new Bundle ID. Enter an app name, select Explicit App ID, and enter an ID. Select the services your app uses, then click Continue. On the next page, confirm the details and click Register to register your Bundle ID.

Kab Agouda
  • 6,309
  • 38
  • 32