报错如下:


Uncategorized (Xcode): Command SwiftGeneratePch emitted errors but did not return a nonzero exit code to
indicate failure


Error (Xcode): no such file or directory:
'/Users/chiragbhansali/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation'


Error (Xcode): stat cache file
'/Users/chiragbhansali/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphonesimulator18.0-22A3362-
db63dc9361471f152f572502bdbfe70a.sdkstatcache' not found

......

解决办法:

将 Xcode 工作区设置(File -> Workspace Settings)中DerivedData文件夹的位置更改为其他位置。


小铭同学丶
57 声望0 粉丝

爱猫,爱代码,爱生活。