ビルド時のnonzero exit codeの解消方法について
解決したいこと
andeoid studioを使ってflutterのプロジェクトを実行したところ、ビルドエラーが発生しています。
iOS・Android共にビルドが成功しません。
ビルドが出来るように解決したいです。
発生している問題・エラー
android
FAILURE: Build failed with an exception.
Where:
Script '/Users/xxxxx/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1156
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command '/Users/xxxxx/flutter/bin/flutter'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 33s
Exception: Gradle task assembleDebug failed with exit code 1
ios
Error output from Xcode build:
↳
2022-06-16 19:45:38.990 xcodebuild[24406:95815] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-06-16 19:45:38.991 xcodebuild[24406:95815] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
Failed to package /Users/xxxxx/VScode/flutter_test_20220616.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
Result bundle written to path:
/var/folders/pv/7lpzj5vd0y18bsfysq4y5qnm0000gp/T/flutter_tools.U9GdXu/flutter_ios_build_temp_dirruLMO6/temporary_xcresult_bundle
Could not build the application for the simulator.
Error launching application on iphone13.
自分で試したこと
下記の記事を読んで試しました
①Execution failed for task ':app:compileFlutterBuildDebug' Issue #49507
https://github.com/flutter/flutter/issues/49507
flutter channel stable
flutter upgrade --force
flutter pub cache repair
cd
flutter clean
②【Xcode】ビルド時に「Command PhaseScriptExecution failed with a nonzero exit code」エラーが発生する
https://cpoint-lab.co.jp/article/202203/22239/
0 likes