- Flutter SDK: 3.29.3 • Стабильный канал • Dart 3.7.2 • Devtools 2.42.3 < /li>
xcode: 16.3 (16e140) с инструментами командной линии в /Applications/xcode.app/contents/developer - IOS Simulator: iPhone 16 Pro Max • ios 18.4. /> Проблема: < /strong>
При запуске моего приложения Flutter на симуляторе iOS 18.4 в режиме отладки сборка успешна, но служба разработки DART (DDS) никогда не начинается, и приложение никогда не прикрепляется. Я вижу: < /p>&& cdКод: Выделить всё
Warning: Failed to start DDS: Failed to start Dart Development Service DevFSException(Service disconnected, _createDevFS: (112) Service has disappeared, null) Error connecting to the service protocol: DartDevelopmentServiceException: Failed to start Dart Development Service < /code> шаги для воспроизведения: < /strong> < /p> git clone Код: Выделить всё
flutter cleanКод: Выделить всё
rm -rf ~/Library/Developer/Xcode/DerivedDataКод: Выделить всё
cd ios && pod install && cd ..- Полный словесный журнал, доступный здесь: https://gist.github.com/akgulmuhammed/a ... 57411c89fe
Код: Выделить всё
flutter run --verbose -d CAD7C59B-8D46-4CAF-9437-AAC75E0D24FE< /code> < /li> < /ol> фрагмент журнала: < /strong> < /p> < [ +3 ms] executing: /usr/bin/arch -arm64e xcrun simctl launch CAD7C59B-8D46-4CAF-9437-AAC75E0D24FE com.example.mlbbHeroCalc --enable-dart-profiling --enable-checked-mode --verify-entry-points [ +493 ms] com.example.mlbbHeroCalc: 57023 [ +1 ms] Waiting for VM Service port to be available... [+8751 ms] VM Service URL on device: http://127.0.0.1:59733/qeivRY9V9ck=/ [ +7 ms] Caching compiled dill [ +162 ms] Connecting to service protocol: http://127.0.0.1:59733/qeivRY9V9ck=/ [ +222 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:59733/qeivRY9V9ck=/. [ +311 ms] Warning: Failed to start DDS: Failed to start Dart Development Service [ ] Fail to connect to service protocol: http://127.0.0.1:59733/qeivRY9V9ck=/: DartDevelopmentServiceException: Failed to start Dart Development Service [ ] Error connecting to the service protocol: failed to connect to http://127.0.0.1:59733/qeivRY9V9ck=/ DartDevelopmentServiceException: Failed to start Dart Development Service [ +2 ms] "flutter run" took 36.014ms. [ +44 ms] #0 throwToolExit (package:flutter_tools/src/base/common.dart:34:3) #1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:931:9) #2 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1558:27) #3 AppContext.run. (package:flutter_tools/src/base/context.dart:154:19) #4 CommandRunner.runCommand (package:args/command_runner.dart:212:13) #5 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:496:9) #6 AppContext.run. (package:flutter_tools/src/base/context.dart:154:19) #7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:431:5) #8 run.. (package:flutter_tools/runner.dart:98:11) #9 AppContext.run. (package:flutter_tools/src/base/context.dart:154:19) #10 main (package:flutter_tools/executable.dart:99:3) [ ] Running 3 shutdown hooks [ +2 ms] Shutdown hooks complete [ +261 ms] exiting with code 2 >
Соответствующий конфигурация:
: class = "Lang-Yaml PrettyPrint-Override">(DDS по -прежнему терпит неудачу)Код: Выделить всё
# pubspec.yaml dependencies: flutter: sdk: flutter permission_handler: ^12.0.0 google_mlkit_text_recognition: ^0.15.0 # … other plugins … < /code> # ios/Podfile platform :ios, '15.5' use_frameworks! target 'Runner' do pod 'permission_handler_apple', '12.0.0' # … other pods … end < /code> MinimumOSVersion 15.6 NSLocalNetworkUsageDescription Allow Flutter tools on your computer to connect and debug your application. < /code> Что я попробовал: < /strong> < /p> flutter clean, deriveddata silme, pod install flutter run --no-ddsне показывает проблемКод: Выделить всё
flutter doctor -v
ожидаемое: приложение на симуляторе, подключает к VM Service, Hot Reload. Devfsexception и DartdevelopmentserviceException появляются. < /Li>
< /ul>
Дополнительный контекст: < /strong>
Это связано с известными ошибками запуска DDS на Flutter 3.29.x с симулятором IOS 18.4. Любой обходной путь или указатели исправления будут оценены!
Подробнее здесь: https://stackoverflow.com/questions/796 ... developmen