Issue
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...
Solution
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.
Answered By - Yilmaz Guleryuz
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.