简体   繁体   中英

Xcode 12.1, disabled Bundle Identifier <Multiple Values> field, Flutter App

Problem I am having an issue with one of my Xcode projects (Flutter App) when incorporating Firebase Authorization into it. I need to be able to set the Bundle Identifier (in General tab, of Runner) as part of the Firebase configuration, unfortunately the field itself is "disabled". I can not: click into it, tab in, nor update it via the info.plist file, nor update it via the Info tab. I can: make changes to the info.plist field and the Info tab Bundle Identifier field, but they do not change/update the General tab Bundle Identifier. It remains a constant:

Bundle Identifier:

Does anyone have any idea how to resolve this issue? Or some troubleshooting to try?

Stats/Details: Android Studio: version 4.1 Xcode: version 12.1 MacOS Catalina: 10.15.7 Firebase Auth: latest version Nov 07 2020

Other projects on Xcode do not have this problem, only this specific project is having this issue and only this project uses Firebase, however this field was disabled before I went to add Firebase. Info.plist screen with Bundle Identifier field default General tab with Bundle Identifier field disabled

You can try with below steps for updating bundle identifier,

  • project/ios/Runner.xcodeproj
  • right click-> Show package contents
  • click project.pbxproj
  • Search for "PRODUCT_BUNDLE_IDENTIFIER = "
  • set bundle identifier value there
  • flutter clean

in Visual Studio Code, similar to Ameer, with minor changes, this didn't happen because of firebase, so might not be the full solution to the issue above.

  1. goto folder project/ios/Runner.xcodeproj
  2. open folder and then click project.pbxproj
  3. I searched for PRODUCT_BUNDLE_IDENTIFIER, there where three, one for debug, profile and release.
  4. update the PRODUCT_BUNDLE_IDENTIFIER to be what it should be, as per appstoreconnect.apple.com (or if you have what every you want if you haven't done the apple store bundle setup yet)
  5. saved changed, and open in xcode and all was good :)

(note - I would have put a comment but I'm not allowed to)

确保所有包标识符都相同(您可能会发现您在这些 PROJECT_NAME_INDETIFIERS 之一中拼错了一个字母,或者另一个字段中的一个字母与另一个不同)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM