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.)
- Mac OSX 10.15.1
- Xcode 11.2.1
- iOS 13.2.2
Error and Flutter environment information.
Code where Thread 1: signal SIGABRT is displayedimport 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
- 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
AppendI 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
Related articles
- web server - i deployed a web application created with ionic to a rental server, but the screen goes blank
- ios - [flutter] i want to display admob banner ad under the keyboard
- ios - i don't know the application id [android studio]
- ios - garbled characters in material_design_icons [flutter]
- ios - what is the data capacity of realm? an application that registers multiple data
- ios - how to drag and drop the flutter firebase configuration file (googleservice-infoplist file) into your project
- ios - how to execute nstimer method on the application side from watchos2?
- ios - i want to display the terms of use of webview only when the application is started for the first time
- when you push the application created with rubyonrails to github, ">>>>>>> origin/master"
- ios - gad application identifier is not displayed
- i want to make a video sharing application using flutter firebase (cloud strage), about the learning method for that
- ios - use geolocator with flutter to get location information
- c # - when the android application of unity is executed on the actual machine, the specified file cannot be found error
- ios development cocoapods command "pod init" is executed, but about podfile creation error
- ios - i want to set the viewcontroller that describes the behavior when the application starts
- how to continue ios application development with xcode in demonaca
- i want to make an ios shogi ai application, but i do not know what to do fundamentally
- A tutorial developed by Flutter to set the application name and icon
- aws-sdk-ios-samples i want to automatically sign out when i quit the application with signed in
- ios - i want to play bgm as soon as the application starts and screen transitions!
Related questions
- android : Hide FAB when scrolling in WebView -Flutter
- android - "///"about [flutter]
- when building on a real ios device with flutter, an error occurs with "the specified item could not be found in the keychai
- ios - [flutter] i want to display admob banner ad under the keyboard
- android - [flutter] i want to display admob banner ad under appbar
- ios - use geolocator with flutter to get location information
- android - i want to display the values in a bar graph with flutter
- android - want to shorten unique device identification information (uuid, etc)
- android - [flutter] how to implement chat user specified reply function
- ios - how to drag and drop the flutter firebase configuration file (googleservice-infoplist file) into your project
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.