-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
c: crashStack traces logged to the consoleStack traces logged to the consolecustomer: productdependency: dartDart team may need to help usDart team may need to help ustoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
I'm trying to build the release version of the example app here https://github.com/tophap/h3_dart . This lib uses Dart FFI, witch work grate on debug.
command
flutter --suppress-analytics build aot --output-dir=build/aot --target-platform=ios --target=lib/main.dart --release --ios-arch=armv7,arm64
exception
ProcessException: ProcessException: Process "xcrun" exited abnormally:
clang: error: unable to execute command: Segmentation fault: 11
clang: error: linker command failed due to signal (use -v to see invocation)
Command: xcrun clang -arch arm64 -miphoneos-version-min=8.0 -dynamiclib -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -install_name @rpath/App.framework/App -o build/aot/arm64/App.framework/App build/aot/arm64/snapshot_assembly.o
#0 runCheckedAsync (package:flutter_tools/src/base/process.dart:339:7)
<asynchronous suspension>
#1 Xcode.clang (package:flutter_tools/src/macos/xcode.dart:101:12)
#2 AOTSnapshotter._buildFramework (package:flutter_tools/src/base/build.dart:261:46)
<asynchronous suspension>
#3 AOTSnapshotter.build (package:flutter_tools/src/base/build.dart:201:38)
<asynchronous suspension>
#4 BuildAotCommand.runCommand.<anonymous closure> (package:flutter_tools/src/commands/build_aot.dart:129:44)
#5 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
#6 BuildAotCommand.runCommand (package:flutter_tools/src/commands/build_aot.dart:128:19)
#7 _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#8 _rootRunUnary (dart:async/zone.dart:1132:38)
#9 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#10 _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#11 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#12 Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#13 Future._completeWithValue (dart:async/future_impl.dart:522:5)
#14 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:30:15)
#15 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:288:13)
#16 AOTSnapshotter.compileKernel (package:flutter_tools/src/base/build.dart)
#17 _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#18 _rootRunUnary (dart:async/zone.dart:1132:38)
#19 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#20 _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#21 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#22 Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#23 Future._completeWithValue (dart:async/future_impl.dart:522:5)
#24 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:30:15)
#25 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:288:13)
#26 AOTSnapshotter._timedStep (package:flutter_tools/src/base/build.dart)
#27 _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#28 _rootRunUnary (dart:async/zone.dart:1132:38)
#29 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#30 _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#31 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#32 Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#33 Future._chainCoreFuture (dart:async/future_impl.dart:493:7)
#34 Future._chainFuture (dart:async/future_impl.dart:565:9)
#35 Future._asyncComplete (dart:async/future_impl.dart:547:7)
#36 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:28:15)
#37 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:288:13)
#38 KernelCompiler.compile (package:flutter_tools/src/compile.dart)
#39 _asyncThenWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:71:64)
#40 _rootRunUnary (dart:async/zone.dart:1132:38)
#41 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#42 _FutureListener.handleValue (dart:async/future_impl.dart:137:18)
#43 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:678:45)
#44 Future._propagateToListeners (dart:async/future_impl.dart:707:32)
#45 Future._completeWithValue (dart:async/future_impl.dart:522:5)
#46 Future._asyncComplete.<anonymous closure> (dart:async/future_impl.dart:552:7)
#47 _rootRun (dart:async/zone.dart:1124:13)
#48 _CustomZone.run (dart:async/zone.dart:1021:19)
#49 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#50 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#51 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#52 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#53 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:116:13)
#54 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:173:5)
flutter doctor
[✓] Flutter (Channel dev, v1.9.7, on Mac OS X 10.14.6 18G87, locale en-RO)
• Flutter version 1.9.7 at /Users/long1eu/IDE/flutter
• Framework revision 4984d1a33d (8 days ago), 2019-08-28 17:04:07 -0700
• Engine revision f52c0b9270
• Dart version 2.5.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /Users/long1eu/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = /Users/long1eu/Library/Android/sdk
• Java binary at: /Users/long1eu/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.5791312/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 10.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.3, Build version 10G8
• CocoaPods version 1.7.5
[✓] Android Studio (version 3.5)
• Android Studio at /Users/long1eu/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.5791312/Android Studio.app/Contents
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.2.1)
• IntelliJ at /Users/long1eu/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
• Flutter plugin version 38.2.4
• Dart plugin version 192.6459
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
yulingtianxiahanabi1224 and awazgyawali
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consolecustomer: productdependency: dartDart team may need to help usDart team may need to help ustoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.