Skip to content

Flutter Gallery app does not run on the new macOS hardware using iOS 14 simulator #65132

Closed

Description

@a-siva

The Flutter Gallery app fails to build/run on the iOS 14 simulator when running on the new macOS hardware
(uses xCode_12_beta)

asiva@sivas-mac gallery % /Users/asiva/flutter/bin/flutter doctor
Downloading android-arm-profile/darwin-x64 tools...                 0.8s
Downloading android-arm-release/darwin-x64 tools...                 0.4s
Downloading android-arm64-profile/darwin-x64 tools...               0.5s
Downloading android-arm64-release/darwin-x64 tools...               0.4s
Downloading android-x64-profile/darwin-x64 tools...                 0.4s
Downloading android-x64-release/darwin-x64 tools...                 0.3s
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, 1.22.0-10.0.pre.50, on macOS 11.0 20A5299w, locale en-US)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
[✓] Xcode - develop for iOS and macOS (Xcode 12.0)
[!] Android Studio (version 4.0)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] Connected device (1 available)

! Doctor found issues in 1 category.

asiva@sivas-mac gallery % /Users/asiva/flutter/bin/flutter run   
Launching lib/main.dart on iPhone SE (2nd generation) in debug mode...
 
Running Xcode build...                                                  
Xcode build done.                                            5.7s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    oah error: unhandled 16KB-unaligned mmap addr=0x0 len=0x21f3bb4 offset=0x1000 prot=1 flags=2
    clang: error: unable to execute command: Trace/BPT trap: 5
    clang: error: linker command failed due to signal (use -v to see invocation)
    Command Ld failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of
    supported deployment target versions is 9.0 to 14.0.99. (in target 'url_launcher' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of
    supported deployment target versions is 9.0 to 14.0.99. (in target 'shared_preferences' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of
    supported deployment target versions is 9.0 to 14.0.99. (in target 'path_provider' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of
    supported deployment target versions is 9.0 to 14.0.99. (in target 'package_info' from project 'Pods')
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of
    supported deployment target versions is 9.0 to 14.0.99. (in target 'Flutter' from project 'Pods')

Could not build the application for the simulator.
Error launching application on iPhone SE (2nd generation).
asiva@sivas-mac gallery % 

Activity

  1. a-siva commented on Sep 2, 2020

    @a-siva
    ContributorAuthor
  2. TahaTesser commented on Sep 3, 2020

    @TahaTesser
    Contributor

    Hi @a-siva
    Can you please provide flutter run --verbose in a .txt file and attach it in the comment
    Thank you

    Relate to #61047

  3. added
    e: OS-version specificAffects only some versions of the relevant operating system
    platform-iosiOS applications specifically
    c: crashStack traces logged to the console
    customer: galleryRelating to flutter/gallery repository. Please transfer non-framework issues there.
    toolAffects the "flutter" command-line tool. See also t: labels.
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Sep 3, 2020
  4. pcsosinski commented on Sep 3, 2020

    @pcsosinski

    /cc @jmagman as fyi

  5. jmagman commented on Sep 3, 2020

    @jmagman
    Member

    This is #64502, the App.framework and Flutter.framework needs an arm simulator slice. @a-siva is the dart team ready to pass their DTK off to someone on the Flutter engine team?
    \cc @zanderso

  6. removed
    c: crashStack traces logged to the console
    customer: galleryRelating to flutter/gallery repository. Please transfer non-framework issues there.
    on Sep 3, 2020
  7. jmagman commented on Sep 3, 2020

    @jmagman
    Member

    @godofredoc did we ever get that DTK (ARM Mac Mini) hooked up in the lab somewhere?

  8. godofredoc commented on Sep 3, 2020

    @godofredoc
    Contributor

    No, we didn't. Actually it is still on the google packages processing center, they didn't deliver it to the lab.

  9. a-siva commented on Sep 3, 2020

    @a-siva
    ContributorAuthor
  10. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Sep 3, 2020
  11. a-siva commented on Sep 3, 2020

    @a-siva
    ContributorAuthor

    Hi @a-siva
    Can you please provide flutter run --verbose in a .txt file and attach it in the comment
    Thank you

    Relate to #61047

    Attached log file

  12. pcsosinski commented on Sep 14, 2020

    @pcsosinski

    adding this to the 1.22 milestone as we'll need it in that release when it is done.

  13. added this to the 1.22 - August 2020 milestone on Sep 14, 2020
  14. alexmarkley commented on Sep 18, 2020

    @alexmarkley

    @jmagman @godofredoc Hey, any update on the porting process? I'm also a DTK program member and I want to help with the porting process -- anything from testing to contributing patches. (See also dart-lang/sdk#43477 and dart-lang/sdk#43476 )

    Is there any (internal or external) coordination process for folks who are under Apple's DTK agreement and want to help?

    Thanks!

  15. alexmarkley commented on Sep 19, 2020

    @alexmarkley

    I don't want to open a duplicate issue, so I'll leave a comment here. I think this is the same issue, but I'll leave that to the team to decide.

    Following instructions here: https://flutter.dev/docs/get-started/install/macos#create-and-run-a-simple-flutter-app

    Output of flutter doctor -v:

    DTK:helloWorldOne alex$ flutter doctor -v
    [✓] Flutter (Channel master, 1.22.0-10.0.pre.264, on macOS 11.0 20A5374g x86_64, locale en-US)
        • Flutter version 1.22.0-10.0.pre.264 at /Users/alex/Development/Flutter/flutter
        • Framework revision 3e6863ab2b (10 hours ago), 2020-09-18 21:05:27 -0700
        • Engine revision 2abe69c608
        • Dart version 2.10.0 (build 2.10.0-136.0.dev)
    
    [✗] Android toolchain - develop for Android devices
        ✗ Unable to locate Android SDK.
          Install Android Studio from: https://developer.android.com/studio/index.html
          On first launch it will assist you in installing the Android SDK components.
          (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
          If the Android SDK has been installed to a custom location, please use
          `flutter config --android-sdk` to update to that location.
    
    
    [✓] Xcode - develop for iOS and macOS (Xcode 12.2)
        • Xcode at /Applications/Xcode-beta.app/Contents/Developer
        • Xcode 12.2, Build version 12B5018i
        • CocoaPods version 1.9.3
    
    [!] Android Studio (not installed)
        • Android Studio not found; download from https://developer.android.com/studio/index.html
          (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
    
    [✓] Connected device (1 available)
        • iPhone SE (2nd generation) (mobile) • 626585CA-3271-4B70-A974-271E361AC12E • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-2 (simulator)
    
    ! Doctor found issues in 2 categories.
    DTK:helloWorldOne alex$ 
    

    (Note that I'm using the latest master from today.)

    Results of flutter run:

    DTK:helloWorldOne alex$ flutter run
    Launching lib/main.dart on iPhone SE (2nd generation) in debug mode...
    Running Xcode build...                                                  
     └─Compiling, linking and signing...                         0.9s
    Xcode build done.                                            8.5s
    Failed to build iOS app
    Error output from Xcode build:
    ↳
        ** BUILD FAILED **
    
    
    Xcode's output:
    ↳
        rosetta error: unhandled 16KB-unaligned mmap addr=0x0 len=0x21f5a70 offset=0x1000 prot=1 flags=2
        clang: error: unable to execute command: Trace/BPT trap: 5
        clang: error: linker command failed due to signal (use -v to see invocation)
        Command Ld failed with a nonzero exit code
        note: Using new build system
        note: Building targets in parallel
        note: Planning build
        note: Constructing build description
    
    Could not build the application for the simulator.
    Error launching application on iPhone SE (2nd generation).
    DTK:helloWorldOne alex$ 
    
  16. jmagman commented on Sep 21, 2020

    @jmagman
    Member

    This issue is a duplicate of #64502, there is no Flutter framework arm simulator slice.

  17. github-actions commented on Aug 12, 2021

    @github-actions

    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.

  18. locked as resolved and limited conversation to collaborators on Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: crashStack traces logged to the consolee: OS-version specificAffects only some versions of the relevant operating systemplatform-iosiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions