Flutter/Error
Flutter ) ios 빌드 무반응 (Encountered error while building for device)
EEYatHo
2024. 12. 19. 11:36
반응형
에러 현상
어떤게 원인인진 모르겠으나, Shorebird 적용, Flutter 엔진 버전 업 등 다양한을 Android 동작 되는 것만 보고 넘어갔었음
이후
VSC로 iOS 빌드시, 아무런 에러 로그 없이 10초 정도 뒤 빌드 멈춤
Xcode로 빌드시, 마찬가지 별다른 에러 로그 없이 빌드 실패만뜸
해결 방법
아래 커맨드로 상세한 로그 확인
flutter build ios -v
아래의 빨간색 에러 로그 확인. 하지만 마찬가지로 별다른 내용이 없음..
[+1744 ms] "flutter ios" took 94,151ms.
[ +18 ms] Encountered error while building for device.
[ ]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 _BuildIOSSubCommand.runCommand (package:flutter_tools/src/commands/build_ios.dart:726:7)
<asynchronous suspension>
#2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1450:27)
<asynchronous suspension>
#3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#4 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#5 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:421:9)
<asynchronous suspension>
#6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:364:5)
<asynchronous suspension>
#8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:131:9)
<asynchronous suspension>
#9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:153:19)
<asynchronous suspension>
#10 main (package:flutter_tools/executable.dart:94:3)
<asynchronous suspension>
직접 눈으로 긴 로그를 분석하다, 아래 로그 발견
art_console-4.1.1.tar.gz","archive_sha256":"30776f697c440fdf5615a5b4fa318fd03c0788a2aeb30625a5972e83592b40c5","published":"2024-11-03T00:24:53.617615Z"}],"_fetchedAt":"2024-12-19T11:17:07
.662860"}
SLVR: fact: http >=0.13.2 depends on async ^2.5.0
SLVR: fact: http >=0.13.0 depends on http_parser ^4.0.0
SLVR: fact: http >=0.13.0 depends on meta ^1.3.0
SLVR: selecting http 0.13.6
SLVR: derived: http_parser ^4.0.0
SLVR: derived: async ^2.5.0
SLVR: selecting deep_pick 1.1.0
SLVR: selecting tint 2.0.1
SLVR: fact: dart_console >=1.2.0 <4.0.0-∞ depends on characters ^1.3.0
SLVR: fact: dart_console >=1.2.0 depends on ffi ^2.0.0
SLVR: fact: dart_console >=1.2.0 <4.0.0-∞ depends on intl ^0.18.0
SLVR: fact: dart_console >=1.2.0 <4.0.0-∞ depends on win32 ^5.0.0
SLVR: selecting dart_console 1.2.0
SLVR: derived: win32 ^5.0.0
SLVR: derived: intl ^0.18.0
SLVR: derived: ffi ^2.0.0
SLVR: derived: characters ^1.3.0
SLVR: fact: intl >=0.17.0 depends on clock ^1.1.0
SLVR: fact: intl >=0.18.0 depends on meta ^1.0.2
SLVR: fact: intl >=0.17.0 depends on path ^1.8.0
SLVR: selecting intl 0.18.1
SLVR: derived: clock ^1.1.0
SLVR: fact: pubspec >=2.0.0 depends on path ^1.8.0
SLVR: fact: pubspec >=2.0.0 depends on pub_semver ^2.0.0
SLVR: fact: pubspec >=2.0.0 depends on uri ^1.0.0
SLVR: fact: pubspec >=2.0.0 depends on yaml ^3.1.0
SLVR: selecting pubspec 2.3.0
SLVR: derived: uri ^1.0.0
SLVR: derived: pub_semver ^2.0.0
SLVR: fact: uri >=1.0.0 depends on matcher ^0.12.10
SLVR: fact: uri >=1.0.0 depends on quiver ^3.0.0
SLVR: selecting uri 1.0.0
SLVR: derived: quiver ^3.0.0
SLVR: derived: matcher ^0.12.10
SLVR: fact: pub_updater <0.3.1-∞ depends on http ^0.13.3
SLVR: fact: pub_updater <0.5.0-∞ depends on json_annotation ^4.1.0
SLVR: fact: pub_updater <0.4.0-∞ depends on process ^4.2.3
SLVR: selecting pub_updater 0.2.4
SLVR: derived: process ^4.2.3
SLVR: derived: json_annotation ^4.1.0
SLVR: fact: process >=4.0.0 <5.0.0-∞ depends on file ^6.0.0
SLVR: fact: process >=4.0.0 depends on path ^1.8.0
SLVR: fact: process >=4.0.0 depends on platform ^3.0.0
SLVR: selecting process 4.2.4
SLVR: fact: file >=6.0.0 <7.0.0-∞ depends on meta ^1.3.0
SLVR: fact: file >=6.0.0 <7.0.0-∞ depends on path ^1.8.0
SLVR: selecting file 6.1.4
SLVR: fact: cli_util >=0.4.2 depends on meta ^1.7.0
SLVR: fact: cli_util >=0.3.0 depends on path ^1.8.0
SLVR: selecting cli_util 0.4.2
SLVR: selecting characters 1.4.0
SLVR: selecting clock 1.1.2
SLVR: fact: http_parser >=4.1.0 depends on collection ^1.19.0
SLVR: fact: http_parser >=4.0.0 depends on source_span ^1.8.0
SLVR: fact: http_parser >=4.0.0 depends on string_scanner ^1.1.0
SLVR: fact: http_parser >=4.0.0 depends on typed_data ^1.3.0
SLVR: selecting http_parser 4.1.1
SLVR: derived: typed_data ^1.3.0
SLVR: derived: collection ^1.19.0
SLVR: selecting collection 1.19.1
SLVR: fact: typed_data >=1.3.0 depends on collection ^1.15.0
SLVR: selecting typed_data 1.4.0
SLVR: selecting path 1.9.1
SLVR: fact: string_scanner >=1.1.0 depends on source_span ^1.8.0
SLVR: selecting string_scanner 1.4.1
SLVR: fact: quiver >=3.0.0 depends on matcher ^0.12.10
SLVR: selecting quiver 3.2.2
SLVR: fact: source_span >=1.8.0 depends on collection ^1.15.0
SLVR: fact: source_span >=1.8.0 depends on path ^1.8.0
SLVR: fact: source_span >=1.8.0 depends on term_glyph ^1.2.0
SLVR: selecting source_span 1.10.1
SLVR: derived: term_glyph ^1.2.0
SLVR: selecting term_glyph 1.2.2
SLVR: selecting ffi 2.1.3
SLVR: fact: pub_semver >=2.0.0 depends on collection ^1.15.0
SLVR: fact: pub_semver >=2.1.0 depends on meta ^1.3.0
SLVR: selecting pub_semver 2.1.5
SLVR: selecting platform 3.1.6
SLVR: selecting args 2.6.0
SLVR: fact: xml >=6.4.0 depends on collection ^1.18.0
SLVR: fact: xml >=6.3.0 depends on meta ^1.9.0
SLVR: fact: xml >=6.4.0 depends on petitparser ^6.0.0
SLVR: selecting xml 6.5.0
SLVR: derived: petitparser ^6.0.0
SLVR: derived: meta ^1.9.0
SLVR: fact: petitparser >=5.2.0 depends on meta ^1.9.0
SLVR: selecting petitparser 6.0.2
SLVR: selecting meta 1.16.0
SLVR: fact: matcher >=0.12.15 depends on async ^2.10.0
SLVR: fact: matcher >=0.12.13 depends on meta ^1.8.0
SLVR: fact: matcher >=0.12.10 depends on stack_trace ^1.10.0
SLVR: fact: matcher >=0.12.15 depends on term_glyph ^1.2.0
SLVR: fact: matcher >=0.12.16+1 depends on test_api >=0.5.0 <0.8.0
SLVR: selecting matcher 0.12.17
SLVR: derived: test_api >=0.5.0 <0.8.0
SLVR: derived: stack_trace ^1.10.0
SLVR: derived: async ^2.10.0
SLVR: fact: async >=2.5.0 depends on collection ^1.15.0
SLVR: fact: async >=2.12.0 depends on meta ^1.3.0
SLVR: selecting async 2.12.0
SLVR: fact: stack_trace >=1.10.0 depends on path ^1.8.0
SLVR: selecting stack_trace 1.12.0
SLVR: fact: test_api >=0.2.19 depends on async ^2.5.0
SLVR: fact: test_api >=0.2.19 depends on boolean_selector ^2.1.0
SLVR: fact: test_api >=0.2.19 depends on collection ^1.15.0
SLVR: fact: test_api >=0.7.1 depends on meta ^1.14.0
SLVR: fact: test_api >=0.2.19 depends on source_span ^1.8.0
SLVR: fact: test_api >=0.2.19 depends on stack_trace ^1.10.0
SLVR: fact: test_api >=0.2.19 depends on stream_channel ^2.1.0
SLVR: fact: test_api >=0.2.19 depends on string_scanner ^1.1.0
SLVR: fact: test_api >=0.2.19 depends on term_glyph ^1.2.0
SLVR: selecting test_api 0.7.4
SLVR: derived: stream_channel ^2.1.0
SLVR: derived: boolean_selector ^2.1.0
SLVR: fact: stream_channel >=2.1.0 depends on async ^2.5.0
SLVR: selecting stream_channel 2.1.2
SLVR: fact: boolean_selector >=2.1.0 depends on source_span ^1.8.0
SLVR: fact: boolean_selector >=2.1.0 depends on string_scanner ^1.1.0
SLVR: selecting boolean_selector 2.1.2
SLVR: fact: json_annotation >=4.1.0 depends on meta ^1.4.0
SLVR: selecting json_annotation 4.9.0
SLVR: fact: win32 >=5.5.5 depends on ffi ^2.1.3
SLVR: selecting win32 5.9.0
SLVR: Version solving took 0:00:00.744542 seconds.
| Tried 1 solutions.
FINE: Resolving dependencies finished (0.748s).
MSG : Downloading packages...
FINE: Downloading packages finished (0.019s).
MSG : > characters 1.4.0 (was 1.3.1)
| dart_console 1.2.0 (4.1.1 available)
| file 6.1.4 (7.0.1 available)
| http 0.13.6 (1.2.2 available)
| intl 0.18.1 (0.20.1 available)
| process 4.2.4 (5.0.3 available)
| > pub_semver 2.1.5 (was 2.1.4)
| pub_updater 0.2.4 (0.5.0 available)
| > source_span 1.10.1 (was 1.10.0)
| > string_scanner 1.4.1 (was 1.4.0)
| > term_glyph 1.2.2 (was 1.2.1)
MSG : Would change 5 dependencies in `/Users/park.youngho/.pub-cache/global_packages/flutterfire_cli`.
MSG : 6 packages have newer versions incompatible with dependency constraints.
| Try `dart pub outdated` for more information.
ERR : The current activation of `flutterfire_cli` cannot resolve to the same set of dependencies.
|
| Try reactivating the package.
| `dart pub global activate flutterfire_cli`
FINE: Exception type: DataException
FINE: package:pub/src/utils.dart 575:36 dataError
| package:pub/src/global_packages.dart 518:13 GlobalPackages.runExecutable.<fn>
| ===== asynchronous gap ===========================
| dart:async Future.catchError
| package:pub/src/utils.dart 140:10 captureErrors.wrappedCallback
| package:stack_trace Chain.capture
| package:pub/src/utils.dart 155:11 captureErrors
| package:pub/src/command.dart 196:13 PubCommand.run
| package:args/command_runner.dart 212:27 CommandRunner.runCommand
| package:dartdev/dartdev.dart 240:30 DartdevRunner.runCommand
| package:args/command_runner.dart 122:25 CommandRunner.run.<fn>
| dart:async new Future.sync
| package:args/command_runner.dart 122:14 CommandRunner.run
| package:dartdev/dartdev.dart 47:29 runDartdev
| /Volumes/Work/s/w/ir/x/w/sdk/pkg/dartdev/bin/dartdev.dart 13:11 main
---- End log transcript ----
IO : Writing 1436363 characters to text file /Users/park.youngho/.pub-cache/log/pub_log.txt.
MSG : Logs written to /Users/park.youngho/.pub-cache/log/pub_log.txt.
Command PhaseScriptExecution failed with a nonzero exit code
가운데 있는데로 아래 커맨드 입력 후 해결됨
dart pub global activate flutterfire_cli