Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

App can not be run on Android and macOS on Flutter 3.10 #950

Closed
1 task done
alizera opened this issue May 11, 2023 · 6 comments · Fixed by #951
Closed
1 task done

App can not be run on Android and macOS on Flutter 3.10 #950

alizera opened this issue May 11, 2023 · 6 comments · Fixed by #951
Labels
bug Something isn't working triage

Comments

@alizera
Copy link

alizera commented May 11, 2023

Existing issue?

What happened?

Expected vs actual result:

Just cloned the repo, is run on iOS simulator and chrome but not on Android and macOS
On Android I get the following issue:

Exception: [!] Your app is using an unsupported Gradle project. To fix this problem, create a new project by running `flutter create -t app <app-directory>` and then move the dart code, assets and pubspec.yaml to the new project.

On MacOS the following one:

Processing dSYMs...
Command PhaseScriptExecution failed with a nonzero exit code
/Users/alireza/dev/flutter/gallery/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.9, but the range of supported deployment target versions is 10.13 to 13.1.99. (in target 'nanopb' from project 'Pods')
/Users/alireza/dev/flutter/gallery/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.10, but the range of supported deployment target versions is 10.13 to 13.1.99. (in target 'PromisesObjC' from project 'Pods')
/Users/alireza/dev/flutter/gallery/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.12, but the range of supported deployment target versions is 10.13 to 13.1.99. (in target 'GoogleUtilities' from project 'Pods')
/Users/alireza/dev/flutter/gallery/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.10, but the range of supported deployment target versions is 10.13 to 13.1.99. (in target 'PromisesSwift' from project 'Pods')
/Users/alireza/dev/flutter/gallery/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.12, but the range of supported deployment target versions is 10.13 to 13.1.99. (in target 'GoogleDataTransport' from project 'Pods')
warning: Run script build phase '[firebase_crashlytics] Crashlytics Upload Symbols' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
** BUILD FAILED **

Exception: Build process failed

Steps to reproduce:

  1. Upgrade flutter to 3.10
  2. Clone the repository
  3. Try to run the app on Android or macOS
  4. flutter clean does not fix this issue

Relevant log output

[✓] Flutter (Channel stable, 3.10.0, on macOS 13.0.1 22A400 darwin-arm64, locale
    en-IR)
    • Flutter version 3.10.0 on channel stable at
      /Users/alireza/Documents/flutter3
    • Upstream repository https:/flutter/flutter.git
    • Framework revision 84a1e904f4 (2 days ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/alireza/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • ANDROID_HOME = /Users/alireza/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.78.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.62.0

[✓] Connected device (3 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 13
      (API 33) (emulator)
    • macOS (desktop)             • macos         • darwin-arm64   • macOS
      13.0.1 22A400 darwin-arm64
    • Chrome (web)                • chrome        • web-javascript • Google
      Chrome 113.0.5672.92

[✓] Network resources
    • All expected network resources are available.

• No issues found!
@alizera alizera added bug Something isn't working triage labels May 11, 2023
@bigbluecat
Copy link

same problem

2 similar comments
@chasel
Copy link

chasel commented May 22, 2023

same problem

@TP-113
Copy link
Contributor

TP-113 commented May 22, 2023

same problem

TP-113 added a commit to TP-113/flutter-gallery that referenced this issue May 22, 2023
TP-113 added a commit to TP-113/flutter-gallery that referenced this issue May 22, 2023
@TP-113
Copy link
Contributor

TP-113 commented May 22, 2023

I made a pull request (#951) to fix this issue.
If you want, check out my brunch and give it a try.

@guidezpl
Copy link
Member

thanks!

guidezpl pushed a commit that referenced this issue May 23, 2023
## Description
Bump MACOSX_DEPLOYMENT_TARGET in Runner.xcodeproj to 10.14.6.
Change Debug Information Format / Debug from DWARF to DWARF with dSYM
File due to fix the error below.
```
warning: Run script build phase '[firebase_crashlytics] Crashlytics Upload Symbols' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
src/flutter_app/gallery/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'nanopb' from project 'Pods')
src/flutter_app/gallery/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'PromisesSwift' from project 'Pods')
src/flutter_app/gallery/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'PromisesObjC' from project 'Pods')
src/flutter_app/gallery/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.12, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'GoogleUtilities' from project 'Pods')
src/flutter_app/gallery/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.12, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'GoogleDataTransport' from project 'Pods')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
```

## Tests
I made sure `flutter run -d macos` was successful.

## Issues
Fixes #950
@altoon-dev
Copy link

what to do if i cant update dart from 3.0.3 to 3.1.0. my terminal isn't working, there's some issues with windows 10 after updating it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants