error: unable to read input file as a property list: The operation couldn’t be completed. (XCBUtil.PropertyListConversionError error 1.)

Viewed 8531

I'm integrating Firebase to my Flutter app and setting up for iOS. I keep getting this error when I run the application.

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.

I'm not sure what could be causing this...

2 Answers

I have been facing the same problem with a newly imported Flutter project. After some debugging, it seems like the issue was caused by a corrupt GoogleService-Info.plist file! Dunno why and how it was corrupted, because I have newly imported and existing project.

To solve this problem, you can follow those steps;

  • Open your project in XCode
  • delete the existing GoogleService-Info.plist file
  • download the original one from Firebase
  • then reimport/re-copy this file into your project

When this is done, run flutter clean then try running it in iOS Simulator

This worked for me, hope it solves your problem too.

This indicates a problem with a *.plist file.

Doesn't matter if it is GoogleService-Info.plist one. It could be Info.plist or Info-Debug.plist or Info-Release.plist - literally any .plist file in your iOS project dir.

I suggest opening the Xcode, clicking every .plist file and checking it if opens fine. If not, the IDE would show you error - probably malformed .plist file.

Related