简体   繁体   English

Xcode 12.1,禁用捆绑标识符<Multiple Values>领域,Flutter 应用程序

[英]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.问题我的一个 Xcode 项目(Flutter 应用程序)在将 Firebase 授权并入其中时遇到问题。 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".我需要能够将 Bundle Identifier(在 Runner 的 General 选项卡中)设置为 Firebase 配置的一部分,不幸的是,该字段本身已“禁用”。 I can not: click into it, tab in, nor update it via the info.plist file, nor update it via the Info tab.我不能:点击进入,标签,也不能通过 info.plist 文件更新它,也不能通过信息选项卡更新它。 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.我可以:对 info.plist 字段和信息选项卡捆绑标识符字段进行更改,但它们不会更改/更新常规选项卡捆绑标识符。 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统计/详细信息: Android Studio:4.1 版 Xcode:12.1 版 MacOS Catalina:10.15.7 Firebase Auth:最新版本 2020 年 11 月 7 日

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. Xcode 上的其他项目没有这个问题,只有这个特定项目有这个问题,只有这个项目使用 Firebase,但是在我去添加 Firebase 之前这个字段被禁用了。 Info.plist screen with Bundle Identifier field default General tab with Bundle Identifier field disabled Info.plist 屏幕,带有 Bundle Identifier 字段默认通用选项卡,Bundle Identifier 字段被禁用

You can try with below steps for updating bundle identifier,您可以尝试使用以下步骤来更新包标识符,

  • project/ios/Runner.xcodeproj项目/ios/Runner.xcodeproj
  • right click-> Show package contents右键单击-> 显示包内容
  • click project.pbxproj单击 project.pbxproj
  • Search for "PRODUCT_BUNDLE_IDENTIFIER = "搜索“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.在 Visual Studio Code 中,与 Ameer 类似,经过细微更改,这不是因为 firebase 而发生的,因此可能不是上述问题的完整解决方案。

  1. goto folder project/ios/Runner.xcodeproj转到文件夹 project/ios/Runner.xcodeproj
  2. open folder and then click project.pbxproj打开文件夹,然后单击 project.pbxproj
  3. I searched for PRODUCT_BUNDLE_IDENTIFIER, there where three, one for debug, profile and release.我搜索了 PRODUCT_BUNDLE_IDENTIFIER,那里有三个,一个用于调试、配置文件和发布。
  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)根据 appstoreconnect.apple.com 将 PRODUCT_BUNDLE_IDENTIFIER 更新为应有的样子(或者,如果您还没有完成 Apple Store 捆绑包设置,则您拥有所需的一切)
  5. saved changed, and open in xcode and all was good :)保存更改,并在 xcode 中打开,一切都很好:)

(note - I would have put a comment but I'm not allowed to) (注意 - 我会发表评论,但我不允许)

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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