swift - 失败 : File name too longDomain: NSPOSIXErrorDomain xcode

标签 swift xcode

我正在尝试运行我的项目,但出现以下错误: enter image description here

这是详细的错误:

Details

copyfile of file:///Users/Arturo/Library/Developer/Xcode/DerivedData/StyleOn-gnaveysksvvzgjehhtqxncocfede/Build/Products/Debug-iphonesimulator/StyleOn.app to file:///Users/Arturo/Library/Developer/CoreSimulator/Devices/14BA1179-CD3E-426E-8918-085B4E028B1E/data/Containers/Shared/SystemGroup/systemgroup.com.apple.installcoordinationd/Library/InstallCoordination/PromiseStaging/DE0A7C4A-FDE7-4159-B9A3-A5F6627D782C/StyleOn.app failed: File name too long
Domain: NSPOSIXErrorDomain
Code: 63
Failure Reason: Unhandled error domain NSPOSIXErrorDomain, code 63
User Info: {
    FunctionName = "-[IXFileManager _copyItemAtURL:toURL:failIfSrcMissing:error:]";
    SourceFileLine = 186;
}
--

我能做什么?

最佳答案

解决这个问题的方法是关闭 Xcode 并清除 DerivedData:

rm -rf ~/Library/Developer/Xcode/DerivedData

关于swift - 失败 : File name too longDomain: NSPOSIXErrorDomain xcode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58743702/

相关文章:

swift - 有没有一种方法可以在 Swift 中初始化数组以具有某些类型 T 的重复值

ios - 核心数据跳过获取函数 Swift

ios - 为什么即使我使用 Alamofire 发出请求,我的应用程序仍然卡住?

ios - 通过从文件中拖动来将图像添加到 xCode

xcode - 在多个开发人员之间共享 Xcode 项目

ios - Xcode 验证与提交到 App Store

ios - GPUImage 裁剪为 CGRect 并旋转

swift - 随着时间的推移,重复的 SwiftUI 动画变得不稳定

iphone - 滚动 UITableView 将停止 Timer

ios - 在 XCUITest 中单击按钮后如何验证和断言动画是否正在播放?