Home>
Error/Environment/Status Status

I recently started Flutter.
I tried to run the Runner.xcworkspace in the ios directory in order to check the created app on the actual iOS device, but it turned out to be "Thread 1: signal SIGABRT" and it didn't run well.

  • Emulator can run without problems.
  • I moved on the real machine for some reason. (After starting up the emulator, it worked fine if I found a StackOverFlow description that said it worked! It was the same situation, but the source code has changed.)

Environment
  • Mac OSX 10.15.1
  • Xcode 11.2.1
  • iOS 13.2.2
Error

Error and Flutter environment information.

Code where Thread 1: signal SIGABRT is displayed
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {// Thread 1: signal where SIGABRT is displayed
  override func application (
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  )->Bool {
    GeneratedPluginRegistrant.register (with: self)
    return super.application (application, didFinishLaunchingWithOptions: launchOptions)
  }
}
Error displayed in Xcode console
2019-11-23 11: 43: 56.766945 + 0900 Runner [5908: 1435388] [VERBOSE-2: dart_vm_data.cc (19)] VM snapshot invalid and could not be inferred from settings.
2019-11-23 11: 43: 56.767036 + 0900 Runner [5908: 1435388] [VERBOSE-2: dart_vm.cc (245)] Could not setup VM data to bootstrap the VM from.
2019-11-23 11: 43: 56.767068 + 0900 Runner [5908: 1435388] [VERBOSE-2: dart_vm_lifecycle.cc (89)] Could not create Dart VM instance.
2019-11-23 11: 43: 56.767638 + 0900 Runner [5908: 1435388] [VERBOSE-3: shell.cc (212)] Check failed: vm. Must be able to initialize the VM.
(lldb)
Flutter doctor -v
$flutter doctor -v
[✓] Flutter (Channel stable, v1.9.1 + hotfix.6, on Mac OS X 10.15.1 19B88, locale ja-JP)
    • Flutter version 1.9.1 + hotfix.6 at/Users/chibatoshinori/tools/flutter
    • Framework revision 68587a0916 (2 months ago), 2019-09-13 19:46:58 -0700
    • Engine revision b863200c37
    • Dart version 2.5.0

[✓] Android toolchain-develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at/Users/chibatoshinori/Library/Android/sdk
    • Android NDK location not configured (optional;useful for native profiling support)
    • Platform android-29, build-tools 28.0.3
    • Java binary at:/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.
[✓] Xcode-develop for iOS and macOS (Xcode 11.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.2.1, Build version 11B500
    • CocoaPods version 1.8.4
[✓] Android Studio (version 3.5)
    • Android Studio at/Applications/Android Studio.app/Contents
    • Flutter plugin version 41.1.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[!] IntelliJ IDEA Community Edition (version 2019.2.4)
    • IntelliJ at/Applications/IntelliJ IDEA CE.app✗ Flutter plugin not installed;this adds Flutter specific functionality.
    ✗ Dart plugin not installed;this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins
[✓] VS Code (version 1.40.1)
    • VS Code at/Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.6.0
[!] Connected device
    ! No devices available
! Doctor found issues in 2 categories.
Things to try
  • DerivedData deletion → clean build folder
  • $flutter build ios
  • Pod directory, delete Podfile.lock → pod install
  • $flutter clean
Other concerns
  • The actual iOS device is connected via USB, but the flutter side is no deveices connected and is not recognized.
  • I can start iOS debug from flutter side, but I don't know how to do it (certification or authentication has been solved)

I would like to tell you if you understand something or have solved a similar situation. Thank you m (_ _) m

Append

I found a similar error issue on github. Still open

  • https://github.com/flutter/flutter/issues/45073
    Multiple similar issues
  • https://github.com/flutter/flutter/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen + VM + snapshot + invalid + and + could + not + be + inferred + from + settings
  • Answer # 1

    Thank you for sharing the solution with Twitter.

    https://github.com/flutter/flutter/issues/24641#issuecomment-442920402

    Run>Build Scheme Configuration from Product>Scheme>Edit Scheme in Xcode
    It seems that there was a need to change from Debug to Release.

Related articles