Skip to content

flutter build ios --release. Only works if i run flutter clean first (from successful debug) #57828

@x4080

Description

@x4080

doctor

✓] Flutter (Channel master, 1.19.0-2.0.pre.142, on Mac OS X 10.14.5 18F132, locale en-ID)
 
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
[!] Android Studio (version 3.5)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.45.1)
[✓] Connected device (1 available)

So the problem is :

  • Flutter debug to ios, works fine
  • When try to build release, it errors like
Error output from Xcode build:
↳
    ** BUILD FAILED 

...
Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Planning build
    note: Constructing build description
...
Encountered error while building for device.
  • run flutter clean
  • run flutter build ios --release
  • works
...
Xcode build done.                                           153.6s
...
  • Now when I try to debug : error
...
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
Exited (sigterm)
  • run flutter clean
  • debug works

Metadata

Metadata

Assignees

No one assigned

    Labels

    in triagePresently being triaged by the triage teamwaiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions