Skip to content

__abort_with_payload when preview on iOS 11.2.6 #17936

@tkosin

Description

@tkosin

Steps to Reproduce

I try to build a sample application like codelab then preview on iOS simulator it works correctly. But when switch the device to preview on my iPhone 7 (iOS 11.2.6) it does not work.

Logs

Logs from terminal

Launching lib/main.dart on iYod7 in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: ERXT9G6V76
Starting Xcode build...
 ├─Assembling Flutter resources...                    1.3s
 └─Compiling, linking and signing...                  3.6s
Xcode build done.                                            6.5s
Installing and launching...                                  8.4s
Could not install build/ios/iphoneos/Runner.app on 752dcb2af620811fa8f18747298e0f0cac3e3d77.
Try launching Xcode and selecting "Product > Run" to fix the problem:
  open ios/Runner.xcworkspace

It stops working while using Xcode to run my application then produce the output below:

dyld`__abort_with_payload:
    0x1012cef40 <+0>:  mov    x16, #0x209
    0x1012cef44 <+4>:  svc    #0x80
->  0x1012cef48 <+8>:  b.lo   0x1012cef60               ; <+32>
    0x1012cef4c <+12>: stp    x29, x30, [sp, #-0x10]!
    0x1012cef50 <+16>: mov    x29, sp
    0x1012cef54 <+20>: bl     0x1012ce5d8               ; cerror_nocancel
    0x1012cef58 <+24>: mov    sp, x29
    0x1012cef5c <+28>: ldp    x29, x30, [sp], #0x10
    0x1012cef60 <+32>: ret    

Logs from Runner > Thread 1 > 0___abort_with_payload

dyld: Library not loaded: @rpath/Flutter.framework/Flutter
  Referenced from: /var/containers/Bundle/Application/73EFC4F1-8C2D-4D1C-8583-C694A2701C61/Runner.app/Runner
  Reason: no suitable image found.  Did find:
	/private/var/containers/Bundle/Application/73EFC4F1-8C2D-4D1C-8583-C694A2701C61/Runner.app/Frameworks/Flutter.framework/Flutter: code signing blocked mmap() of '/private/var/containers/Bundle/Application/73EFC4F1-8C2D-4D1C-8583-C694A2701C61/Runner.app/Frameworks/Flutter.framework/Flutter'
(lldb) 

And this is flutter doctor -v

[✓] Flutter (Channel beta, v0.4.4, on Mac OS X 10.13.4 17E202, locale en-TH)
    • Flutter version 0.4.4 at /Users/Yod/flutter
    • Framework revision f9bb4289e9 (2 weeks ago), 2018-05-11 21:44:54 -0700
    • Engine revision 06afdfe54e
    • Dart version 2.0.0-dev.54.0.flutter-46ab040e58

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/Yod/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • ANDROID_HOME = /Users/Yod/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.2, Build version 9C40b
    • ios-deploy 1.9.2
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 24.2.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] VS Code (version 1.23.1)
    • VS Code at /Users/Yod/Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.12.1

[✓] Connected devices (2 available)
    • iYod7    • 752dcb2af620811fa8f18747298e0f0cac3e3d77 • ios • iOS 11.2.6
    • iPhone X • AF7938AA-6464-427B-9040-DBFA1E93BCB6     • ios • iOS 11.2 (simulator)

• No issues found!

And finally, my flutter app display the white screen on the iOS device. I'm always getting the same error when try to preview on my iPhone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions