flutter运行到iOS模拟器报错

bash 复制代码
Error (Xcode): no such file or directory:
'/Users/clm/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation'


Could not build the application for the simulator.
Error launching application on iPhone 16.

这个报错直接在Xcode里面设置在"Locations位置"部分,我发现了关于DerivedData位置的设置,它被设置为Default。于是,我将位置从 更改Default为Custom,并将 设置为我主目录下的一个新文件夹: