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

相关推荐
黄毛火烧雪下4 小时前
将 iOS 项目打包并运行到真实的 iPhone 设备
ios·iphone
火炎焱燚-5 小时前
Flutter - 基础Widget
flutter
ClaNNEd@6 小时前
001第一个flutter文件
前端·flutter
江上清风山间明月6 小时前
一周掌握Flutter开发--4、导航与路由
android·flutter·路由·导航·ongenerateroute·navigator.push·navigator.pop
l软件定制开发工作室8 小时前
Flutter系列教程之(4)——自定义Widget控件及相关知识
flutter
后端常规开发人员9 小时前
iOS手机App爬虫- (1) Mac安装Appium真机运行环境
爬虫·ios·appium
逐星ing11 小时前
【AIGC】使用Python实现科大讯飞语音服务ASR转录功能:完整指南
python·aigc·xcode
明远湖之鱼20 小时前
关于我在 iOS 开发中用 Swift 实现的两个交互效果
前端·ios·swift
mzlogin21 小时前
iOS|记一名 iOS 开发新手的前两次 App 审核经历
ios