升级 Xcode 14.3 后构建失败

Cod*_*ter 9 ios flutter xcode14

升级 Xcode 14.3 后,我的 flutter 运行无法在 iOS 上运行,但我可以在 Android 上运行。

\n

我收到以下错误:

\n
Failed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n    2023-04-03 17:29:33.364 xcodebuild[97688:923371] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)\n    xcodebuild: error: Unable to find a destination matching the provided destination specifier:\n            { id:6EB5FA1B-46DC-4E2D-BA30-9BF413BCB06F }\n\n        Available destinations for the "Runner" scheme:\n            { platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:00006000-001429C12E23801E }\n            { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }\n\nXcode's output:\n\xe2\x86\xb3\n    Writing result bundle at path:\n        /var/folders/k9/wbd7hvx90_s_1_rt6sqg61b80000gn/T/flutter_tools.3s0yqP/flutter_ios_build_temp_dirw6n3UV/temporary_xcresult_bundle\n\n\nCould not build the application for the simulator.\nError launching application on iPhone 14 Pro Max.\n
Run Code Online (Sandbox Code Playgroud)\n

Tus*_*yal 5

改变

\n
<LaunchAction\n\n\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0 buildConfiguration = "Release" to \xc2\xa0buildConfiguration = "Debug"\n
Run Code Online (Sandbox Code Playgroud)\n

在 Runner.xcscheme.\xc2\xa0 中

\n

  • 使用“XCODE:产品&gt;方案&gt;编辑方案”导航...然后从“发布”到“调试”构建配置 (2认同)