Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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...

like image 671
Rick Avatar asked Dec 23 '22 17:12

Rick


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.

like image 137
Yilmaz Guleryuz Avatar answered May 19 '23 05:05

Yilmaz Guleryuz


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.

like image 26
Michał Dobi Dobrzański Avatar answered May 19 '23 05:05

Michał Dobi Dobrzański