【问题标题】:error: unable to read input file as a property list: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 1.)错误:无法将输入文件作为属性列表读取:操作无法完成。 (XCBUtil.PropertyListConversionError 错误 1。)
【发布时间】:2020-11-17 07:43:36
【问题描述】:

我正在将 Firebase 集成到我的 Flutter 应用并针对 iOS 进行设置。我在运行应用程序时不断收到此错误。

Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    error: unable to read input file as a property list: The operation couldn’t be
    completed. (XCBUtil.PropertyListConversionError error 1.) (in target 'Runner' from
    project 'Runner')
    note: Using new build system
    note: Planning build
    note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.

我不确定是什么原因造成的...

【问题讨论】:

    标签: ios firebase flutter


    【解决方案1】:

    我在新导入的 Flutter 项目中遇到了同样的问题。 经过一些调试,问题似乎是由损坏的GoogleService-Info.plist 文件引起的!不知道为什么以及如何损坏,因为我有新导入的和现有的项目。

    要解决此问题,您可以按照以下步骤操作;

    • 在 XCode 中打开您的项目
    • 删除现有的GoogleService-Info.plist文件
    • 从 Firebase 下载原始文件
    • 然后将此文件重新导入/重新复制到您的项目中

    完成后, 运行 flutter clean 然后尝试在 iOS 模拟器中运行它

    这对我有用,希望它也能解决你的问题。

    【讨论】:

    • 这对我有用:删除文件,然后再次从 xcode 创建 GoogleService-Info.plist
    猜你喜欢
    • 1970-01-01
    • 2015-06-03
    • 1970-01-01
    • 2017-06-04
    • 1970-01-01
    • 1970-01-01
    • 2018-04-14
    • 1970-01-01
    • 2023-03-29
    相关资源
    最近更新 更多