这是整个日志

/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

我担心会做一些我不理解的事情,并最终破坏了我的代码。有人知道如何解决此问题吗?我应该先删除方向吗?据我所知,这个问题是突然出现的。

最佳答案

确保您的故事而不是中出现不只一个。在构建阶段->复制 bundle 资源,如果是,则删除其中一个将解决问题。

关于ios - Main_iPhone.storyboard : Compilation failed.无法写入路径:,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25172271/

10-10 23:07