Main_iPhone.storyboard:编译失败.无法写入路径:

lea*_*ner 11 xcode interface-builder storyboard ios

这是整个日志

/Users/myname/reponame/projectname/projectname/Base.lproj/Main_iPhone.storyboard: 
Compilation failed. Unable to write to path: /Users/myname/Library/Developer/Xcode/
DerivedData/projectname-csxwagvbpfvfsmbgswcukqirbmgg/Build/Products/Debug-iphoneos/
projectname.app/Base.lproj/Main_iPhone.storyboardc


Underlying Errors:
        Description: The file “Main_iPhone.storyboardc” couldn’t be saved in the folder “Base.lproj” because a file with the same name already exists.
        Failure Reason: A file with the name “Main_iPhone.storyboardc” already exists.
        Recovery Suggestion: To save the file, either provide a different name, or move aside or delete the existing file, and try again.
        Underlying Errors:
            Description: The operation couldn’t be completed. File exists
            Failure Reason: File exists
        Description: “Main_iPhone.storyboardc” couldn’t be removed because you don’t have permission to access it.
        Failure Reason: You don’t have permission.
        Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > Get Info.
        Underlying Errors:
            Description: The operation couldn’t be completed. Directory not empty
            Failure
Run Code Online (Sandbox Code Playgroud)

我害怕做一些我不理解的事情并最终破坏我的代码.有谁知道如何解决这个问题?我应该提前做并删除方向吗?据我所知,这个问题突然出现了.

Zee*_*sha 18

确保您的故事板在构建阶段 - >复制捆绑资源中不会出现多个,如果是,则删除一个它将解决问题.


Unp*_*lug 12

我今天遇到了同样的问题.只需删除/ Users/myname/Library/Developer/Xcode/DerivedData/projectname-csxwagvbpfvfsmbgswcukqirbmgg /即可解决您的问题.您可能还需要退出xcode并重新启动它.