Skip to content

could not run on macos #25

@allanGoldZhiKang

Description

@allanGoldZhiKang

Please help me, thank you very much
when exec cargo run

error: failed to run custom build command for nativeshell_examples v0.1.0 (/Users/qitmac001418/Downloads/examples)
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
process didn't exit successfully: /Users/qitmac001418/Downloads/examples/target/debug/build/nativeshell_examples-28233663d8c9be08/build-script-build (exit status: 101)
--- stdout

** Build failed with error **

External Tool Failed!
Status: ExitStatus(unix_wait_status(256))
Command: cd "/Users/qitmac001418/Downloads/examples/target/debug/build/nativeshell_examples-2860a8f059a03971/out/flutter" && "/Users/qitmac001418/development/flutter/bin/flutter" "assemble" "--output=." "--define=BuildMode=debug" "--define=TargetPlatform=darwin" "--define=DarwinArchs=arm64" "--define=TargetFile=../../../../../../lib/main.dart" "--DartDefines=" "-v" "--suppress-analytics" "debug_macos_bundle_flutter_assets"
Stderr:
[+3826 ms] ../../../../../../../../.pub-cache/hosted/pub.dev/package_info_plus_windows-2.1.0/lib/src/file_version_info.dart:13:17: Error: Field 'wLanguage' cannot be nullable or have type 'Null', it must be int, double, Pointer, or a subtype of Struct or Union.
[ ] external int? wLanguage;
[ ] ^
[ ] ../../../../../../../../.pub-cache/hosted/pub.dev/package_info_plus_windows-2.1.0/lib/src/file_version_info.dart:16:17: Error: Field 'wCodePage' cannot be nullable or have type 'Null', it must be int, double, Pointer, or a subtype of Struct or Union.
[ ] external int? wCodePage;
[ ] ^
[ ] Target kernel_snapshot failed: Exception
#0 KernelSnapshot.build (package:flutter_tools/src/build_system/targets/common.dart:256:7)

#1 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:853:9)

#2 Future.wait. (dart:async/future.dart:525:21)

#3 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:791:32)

#4 FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:620:16)

#5 AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:315:32)

#6 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1297:27)

#7 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#8 CommandRunner.runCommand (package:args/command_runner.dart:212:13)

#9 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:339:9)

#10 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#11 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:285:5)

#12 run.. (package:flutter_tools/runner.dart:115:9)

#13 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#14 main (package:flutter_tools/executable.dart:90:3)

[ ]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:332:7)

#2 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1297:27)

#3 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#4 CommandRunner.runCommand (package:args/command_runner.dart:212:13)

#5 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:339:9)

#6 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:285:5)

#8 run.. (package:flutter_tools/runner.dart:115:9)

#9 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#10 main (package:flutter_tools/executable.dart:90:3)

Stdout:
[ +2 ms] executing: sw_vers -productName
[ +10 ms] Exit code 0 from: sw_vers -productName
[ ] macOS
[ ] executing: sw_vers -productVersion
[ +6 ms] Exit code 0 from: sw_vers -productVersion
[ ] 14.4.1
[ ] executing: sw_vers -buildVersion
[ +6 ms] Exit code 0 from: sw_vers -buildVersion
[ ] 23E224
[ ] executing: uname -m
[ +1 ms] Exit code 0 from: uname -m
[ ] arm64
[ +1 ms] executing: sysctl hw.optional.arm64
[ +1 ms] Exit code 0 from: sysctl hw.optional.arm64
[ ] hw.optional.arm64: 1
[ +26 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +44 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +10 ms] Initializing file store
[ +4 ms] Skipping target: gen_localizations
[ +6 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /Users/qitmac001418/Downloads/examples/target/debug/build/nativeshell_examples-2860a8f059a03971/out/flutter/.dart_tool/package_config_subset}
[ +5 ms] debug_macos_framework: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /Users/qitmac001418/development/flutter/packages/flutter_tools/lib/src/build_system/targets/macos.dart}
[ +4 ms] executing: sysctl hw.optional.arm64
[ +2 ms] Exit code 0 from: sysctl hw.optional.arm64
[ ] hw.optional.arm64: 1
[ ] executing: /usr/bin/arch -arm64e xcrun clang -x c /Users/qitmac001418/Downloads/examples/target/debug/build/nativeshell_examples-2860a8f059a03971/out/flutter/.dart_tool/flutter_build/dc5aebf40c755e8c715f4844b49ba62f/debug_app.cc -arch arm64 -dynamiclib -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -fapplication-extension -install_name @rpath/App.framework/App -o /Users/qitmac001418/Downloads/examples/target/debug/build/nativeshell_examples-2860a8f059a03971/out/flutter/.dart_tool/flutter_build/dc5aebf40c755e8c715f4844b49ba62f/App.framework/App
[ +1 ms] debug_unpack_macos: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /Users/qitmac001418/development/flutter/packages/flutter_tools/lib/src/build_system/targets/macos.dart,/Users/qitmac001418/development/flutter/bin/internal/engine.version}
[ +431 ms] debug_unpack_macos: Complete
[ +209 ms] Found plugin package_info_plus at /Users/qitmac001418/.pub-cache/hosted/pub.dev/package_info_plus-1.4.3+1/
[ +1 ms] Found plugin package_info_plus_linux at /Users/qitmac001418/.pub-cache/hosted/pub.dev/package_info_plus_linux-1.0.5/
[ ] Found plugin package_info_plus_macos at /Users/qitmac001418/.pub-cache/hosted/pub.dev/package_info_plus_macos-1.3.0/
[ +1 ms] Found plugin package_info_plus_web at /Users/qitmac001418/.pub-cache/hosted/pub.dev/package_info_plus_web-1.0.6/
[ ] Found plugin package_info_plus_windows at /Users/qitmac001418/.pub-cache/hosted/pub.dev/package_info_plus_windows-2.1.0/
[ +1 ms] Found plugin path_provider at /Users/qitmac001418/.pub-cache/hosted/pub.dev/path_provider-2.0.11/
[ +1 ms] Found plugin path_provider_android at /Users/qitmac001418/.pub-cache/hosted/pub.dev/path_provider_android-2.0.22/
[ ] Found plugin path_provider_ios at /Users/qitmac001418/.pub-cache/hosted/pub.dev/path_provider_ios-2.0.11/
[ ] Found plugin path_provider_linux at /Users/qitmac001418/.pub-cache/hosted/pub.dev/path_provider_linux-2.1.7/
[ ] Found plugin path_provider_macos at /Users/qitmac001418/.pub-cache/hosted/pub.dev/path_provider_macos-2.0.6/
[ ] Found plugin path_provider_windows at /Users/qitmac001418/.pub-cache/hosted/pub.dev/path_provider_windows-2.1.3/
[ +1 ms] Found plugin shared_preferences at /Users/qitmac001418/.pub-cache/hosted/pub.dev/shared_preferences-2.0.15/
[ ] Found plugin shared_preferences_android at /Users/qitmac001418/.pub-cache/hosted/pub.dev/shared_preferences_android-2.0.14/
[ ] Found plugin shared_preferences_ios at /Users/qitmac001418/.pub-cache/hosted/pub.dev/shared_preferences_ios-2.1.1/
[ ] Found plugin shared_preferences_linux at /Users/qitmac001418/.pub-cache/hosted/pub.dev/shared_preferences_linux-2.1.2/
[ ] Found plugin shared_preferences_macos at /Users/qitmac001418/.pub-cache/hosted/pub.dev/shared_preferences_macos-2.0.5/
[ +1 ms] Found plugin shared_preferences_web at /Users/qitmac001418/.pub-cache/hosted/pub.dev/shared_preferences_web-2.0.4/
[ ] Found plugin shared_preferences_windows at /Users/qitmac001418/.pub-cache/hosted/pub.dev/shared_preferences_windows-2.1.2/
[ +2 ms] Found plugin url_launcher at /Users/qitmac001418/.pub-cache/hosted/pub.dev/url_launcher-6.1.7/
[ ] Found plugin url_launcher_android at /Users/qitmac001418/.pub-cache/hosted/pub.dev/url_launcher_android-6.0.22/
[ ] Found plugin url_launcher_ios at /Users/qitmac001418/.pub-cache/hosted/pub.dev/url_launcher_ios-6.0.17/
[ ] Found plugin url_launcher_linux at /Users/qitmac001418/.pub-cache/hosted/pub.dev/url_launcher_linux-3.0.1/
[ ] Found plugin url_launcher_macos at /Users/qitmac001418/.pub-cache/hosted/pub.dev/url_launcher_macos-3.0.1/
[ ] Found plugin url_launcher_web at /Users/qitmac001418/.pub-cache/hosted/pub.dev/url_launcher_web-2.0.13/
[ ] Found plugin url_launcher_windows at /Users/qitmac001418/.pub-cache/hosted/pub.dev/url_launcher_windows-3.0.1/
[ +14 ms] gen_dart_plugin_registrant: Complete
[ ] kernel_snapshot: Starting due to {}
[ +3 ms] /Users/qitmac001418/development/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /Users/qitmac001418/development/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot --sdk-root /Users/qitmac001418/development/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --packages /Users/qitmac001418/Downloads/examples/target/debug/build/nativeshell_examples-2860a8f059a03971/out/flutter/.dart_tool/package_config.json --output-dill /Users/qitmac001418/Downloads/examples/target/debug/build/nativeshell_examples-2860a8f059a03971/out/flutter/.dart_tool/flutter_build/dc5aebf40c755e8c715f4844b49ba62f/app.dill --depfile /Users/qitmac001418/Downloads/examples/target/debug/build/nativeshell_examples-2860a8f059a03971/out/flutter/.dart_tool/flutter_build/dc5aebf40c755e8c715f4844b49ba62f/kernel_snapshot.d --incremental --initialize-from-dill /Users/qitmac001418/Downloads/examples/target/debug/build/nativeshell_examples-2860a8f059a03971/out/flutter/.dart_tool/flutter_build/dc5aebf40c755e8c715f4844b49ba62f/app.dill --source file:///Users/qitmac001418/Downloads/examples/target/debug/build/nativeshell_examples-2860a8f059a03971/out/flutter/.dart_tool/flutter_build/dart_plugin_registrant.dart --source package:flutter/src/dart_plugin_registrant.dart -Dflutter.dart_plugin_registrant=file:///Users/qitmac001418/Downloads/examples/target/debug/build/nativeshell_examples-2860a8f059a03971/out/flutter/.dart_tool/flutter_build/dart_plugin_registrant.dart --verbosity=error package:nativeshell_examples/main.dart
[ +43 ms] debug_macos_framework: Complete
[ +734 ms] Persisting file store
[ +1 ms] Done persisting file store
[ +3 ms] "flutter assemble" took 5,376ms.
[ +1 ms] ensureAnalyticsSent: 0ms
[ ] Running 0 shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 1

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