flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
164.53k stars 27.13k forks source link

IOS build Error: "Encountered error while archiving for device." #104497

Closed bharawdwajrahul closed 2 years ago

bharawdwajrahul commented 2 years ago

Unable to build flutter IOS app with flutter version 3.0.1 and 3.0.0

NOTE: The build was and is working perfectly for version 2.10.5 and below.

danagbemava-nc commented 2 years ago

Hi @bharawdwajrahul, thanks for filing the issue.

Please provide the following information

Also, are you able to build the default flutter app, or do you experience issues with that as well?

Thank you

bharawdwajrahul commented 2 years ago

building_ios (1).log flutte_doctor_v.txt Podfile.txt Pubspec.txt pubspec_lock.txt

bharawdwajrahul commented 2 years ago

I am building the application on Codemagic, I don't have a log with verbose, I've attached all the other things you have asked for, please take a look.

danagbemava-nc commented 2 years ago

Hi @bharawdwajrahul, on your local machine are you able to build the android apk successfully?

I'm asking this because buried somewhere in the logs you shared, there's an error in one of your files lib/screens/maps/locationPicker.dart:93:7: Error: Expected ',' before this.

bharawdwajrahul commented 2 years ago

I just confirmed, we are able to build a Android apk

danagbemava-nc commented 2 years ago

Hi @bharawdwajrahul, are you running the same versions of flutter locally and on Codemagic?

Can you also make sure that your dependencies are up to date and try building again to see if you experience the error?

github-actions[bot] commented 2 years ago

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.