在我的 flutter 项目中,我使用 Codemagic 作为 CI/CD 工具。\n将风味添加到应用程序后,我开始在其中一种风味上收到此错误。
\n> flutter build ios --release --no-codesign --build-name=0.0.1 --build-number=33 --flavor dev\nDownloading ios tools... 2.4s\nDownloading ios-profile tools... 1.5s\nDownloading ios-release tools... 7.3s\nWarning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.\nBuilding se.getgaston.app for device (ios-release)...\nRunning pod install... 323.3s (!)\nRunning Xcode build... \nXcode build done. 875.6s\nBuilt /Users/builder/clone/build/ios/iphoneos/Runner.app.\n\n> xcode-project build-ipa --workspace /Users/builder/clone/ios/Runner.xcworkspace --scheme dev --config Release-dev\nArchive Runner.xcworkspace\nExecute "xcodebuild -workspace /Users/builder/clone/ios/Runner.xcworkspace -scheme dev -config Release-dev -archivePath build/ios/xcarchive/Runner_j1t8laki.xcarchive archive COMPILER_INDEX_STORE_ENABLE=NO DEVELOPMENT_TEAM=28759WZ2NP 'CODE_SIGN_IDENTITY=iPhone …Run Code Online (Sandbox Code Playgroud) 我在 Flutter 2.0.3 上启动 Flutter 模板应用程序时遇到问题。\n我收到此输出
\nLaunching lib/main.dart on SM J320H in debug mode...\nRunning Gradle task 'assembleDebug'...\n\xe2\x9c\x93 Built build/app/outputs/flutter-apk/app-debug.apk.\nInstalling build/app/outputs/flutter-apk/app.apk...\nError connecting to the service protocol: failed to connect to http://127.0.0.1:62719/OJaWBfEtnmY=/\nRun Code Online (Sandbox Code Playgroud)\n我正在真实的 Android 设备上启动此应用程序。\n使用 Flutter 1.22.5 启动时 - 一切正常。
\n颤振医生输出:
\nDoctor summary (to see all details, run flutter doctor -v):\n[\xe2\x9c\x93] Flutter (Channel stable, 2.0.3, on Mac OS X 10.15.7 19H2 darwin-x64, locale\n en-UA)\n[\xe2\x9c\x93] Android toolchain - develop for Android devices (Android SDK version 30.0.3)\n[\xe2\x9c\x93] Xcode - develop …Run Code Online (Sandbox Code Playgroud)