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

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值