【发布时间】:2021-12-16 00:44:15
【问题描述】:
昨天,我将我的 macbook 更新到 macOS Mouterey,然后更新 Xcode 然后当打开 Android Studio 时,我会在颤动中运行我的应用程序 我得到这个错误:
Launching lib/main.dart on iPhone 12 in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 5.3s
Failed to build iOS app
Error output from Xcode build:
↳
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:4A32C7DF-2445-4177-9C26-584684610C84, OS:15.0, name:iPad (9th generation) }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
** BUILD FAILED **
Xcode's output:
↳
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
xxxx/myproject/ios/Flutter/Debug.xcconfig:1:1: error: unable to open file (in target "Runner" in project "Runner")
xxxx/myproject/ios/Flutter/Debug.xcconfig:1:1: error: unable to open file (in target "Runner" in project "Runner")
xxxx/myproject/ios/Flutter/Debug.xcconfig:1:1: error: unable to open file (in target "Runner" in project "Runner")
warning: Unable to read contents of XCFileList '/Target Support Files/Pods-Runner/Pods-Runner-frameworks-Debug-output-files.xcfilelist' (in target 'Runner' from project 'Runner')
error: Unable to load contents of file list: '/Target Support Files/Pods-Runner/Pods-Runner-frameworks-Debug-input-files.xcfilelist' (in target 'Runner' from project 'Runner')
error: Unable to load contents of file list: '/Target Support Files/Pods-Runner/Pods-Runner-frameworks-Debug-output-files.xcfilelist' (in target 'Runner' from project 'Runner')
Could not build the application for the simulator.
Error launching application on iPhone 12.
【问题讨论】:
-
你试过 Flutter Clean 吗?还有 Flutter Doctor 的输出是什么?
-
是的,我尝试运行 flutter clean ,并且 flutter doctor 的输出也可以
标签: ios flutter dart flutter-layout ios-simulator