Flutter-升级Xcode后构建iOS报错

代码什么都没改动,貌似只是升级了下Xcode,构建iOS就一直报错,错误有时候还不一样。

复制代码
Swift Compiler Error (Xcode): Unable to rename temporary '/Users/admin/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/2ZBFEEPIDQ0EY/CoreImage-2ADU88VB0BY2P-27cd3ef4.pcm.tmp' 
to output file '/Users/admin/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/2ZBFEEPIDQ0EY/CoreImage-2ADU88VB0BY2P.pcm': 
'No such file or directory'  Swift Compiler Error (Xcode): Could not build module 'CoreImage' 

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
iPhoneSimulator18.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:12:8

stat cache file '/Users/admin/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/
iphoneos18.2-22C146-d5b9239ec3bf5b3adbecdf21472871e3.sdkstatcache' not found

AI&Google各种问,都说是DerivedData缓存的问题,让删缓存。

折腾了一上午都搞不定。

最后看到了这个,成功解决。

https://stackoverflow.com/questions/79118572/xcode-16-and-ios-18-project-not-compiling

相关推荐
pop_xiaoli3 小时前
OC—UI学习-2
学习·ui·ios
90后的晨仔6 小时前
git 命令汇总
ios
liucan2339 小时前
JS执行速度似乎并不比Swift或者C语言慢
前端·ios
方文_11 小时前
flutter~loading效果
flutter
唯有选择11 小时前
让你的应用界面好看的基石:Flutter主题Theme使用和扩展自定义字段
前端·flutter
安和昂11 小时前
【iOS】 Block再学习
学习·ios·cocoa
pop_xiaoli12 小时前
OC学习—命名规范
学习·ios
sunly_16 小时前
Flutter:导航固定背景图,滚动时导航颜色渐变
android·javascript·flutter
Digitally16 小时前
如何在没有 iTunes 的情况下备份 iPhone
ios·iphone
刘_小_二17 小时前
iOS用Xib 之三等分以及多等分思路
ios