Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/93.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios Main_iPhone.storyboard:编译失败。无法写入路径:_Ios_Xcode_Storyboard_Interface Builder - Fatal编程技术网

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

Ios Main_iPhone.storyboard:编译失败。无法写入路径:,ios,xcode,storyboard,interface-builder,Ios,Xcode,Storyboard,Interface Builder,这是全部日志 /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-ip

这是全部日志

/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

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

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

清理我的项目对我很有效,如本文所述。添加一个链接,以防人们找到此页面而不是其他页面。

我也遇到了同样的问题。我的错误是,我的一个故事板ID包含“/”。我把它取下来后,一切都很好。希望它能对您有所帮助。

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

查看类似的问题答案:我必须清理,然后退出xcode,然后移除DerivedData文件夹并重新启动。退出并删除DerivedData还不够。谢谢Pat并拔下插头。我添加了一个故事板参考一个,然后这个。所以,你的脚步修正了它。是的!就我而言,这个解决方案很有帮助。谢谢这也解决了我的问题——也许这是git合并的结果?