Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/17.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 命令CompileXIB失败,退出代码为非零_Ios_Swift_Xcode - Fatal编程技术网

Ios 命令CompileXIB失败,退出代码为非零

Ios 命令CompileXIB失败,退出代码为非零,ios,swift,xcode,Ios,Swift,Xcode,我在使用Xcode构建ios应用程序时遇到问题。在建造这个项目之前,这一切都进行得很顺利。Idk为什么在错误消息上出现奇怪的东西。实际上,我的代码没有问题 错误消息如下所示: CompileXIB/Users/saiful/Documents/test ios/test/test/Base.lproj/roomResultableViewCell.xib(目标:测试中) cd/Users/saiful/Documents/test ios/test 导出XCODE\u DEVELOPER\u

我在使用Xcode构建ios应用程序时遇到问题。在建造这个项目之前,这一切都进行得很顺利。Idk为什么在错误消息上出现奇怪的东西。实际上,我的代码没有问题

错误消息如下所示:

CompileXIB/Users/saiful/Documents/test ios/test/test/Base.lproj/roomResultableViewCell.xib(目标:测试中) cd/Users/saiful/Documents/test ios/test 导出XCODE\u DEVELOPER\u USR\u PATH=/Applications/XCODE.app/Contents/DEVELOPER/USR/bin/。。 /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool--错误--警告--注意--模块测试--输出部分信息plist/Users/saiful/Library/Developer/Xcode/DerivedData/test bgtollzqziiyvkfqjgwogitynwsj/Build/Intermediates.noindex/test.Build/Debug-iphonesimulator/test.Build/Base.lproj/roomresultableviewcell-partalinfo.plist--自动激活自定义字体--目标设备iphone--最小部署目标9.0--输出格式人类可读文本--编译/Users/saiful/Library/Developer/Xcode/DerivedData/test bgtolzqziiyvkfqjgwogitynwsj/Build/Products/Debug iphonesimulator/test.app/Base.lproj/roomresultableviewcell.nib/用户/saiful/Documents/test-ios/test/test/Base.lproj/roomResultableViewCell.xib

但是当我尝试再次构建时,错误消息将抛出另一个XIB或故事板名称


我已经试着清理和重建了。另外,删除派生数据并重新打开我的Xcode我正在使用git进行我的项目。当我移动到另一个分支时,是否遗漏了某些内容?

单击属性检查器的第一个选项卡。 滚动至“界面生成器文档”部分。 从下拉列表中,尝试从下拉列表中打开更改Xcode版本


问题在于XIB的结构与Xcode所期望的结构不同。这可能是由Xcode的更新引起的。
@gupta的答案应该改变xib的结构,以满足当前Xcode的需要。我注意到,在Xcode的一些beta版中,beta版不在下拉列表中,因此这可能是您的情况。

Ya从一开始就设置了它。而且仍然显示构建失败升级到Xcode 11时,我只有一个XIB文件(在我的项目中的许多文件中)未能编译,出现了“Command CompileXIB failed with a non-zero exit code”错误。将“在中打开”的Xcode版本从Xcode 10更改为Xcode 11为我解决了这个问题。谢谢您能建议一下,如何根据xcode更改xib格式吗?甚至我在xcode 11.1和BigSur操作系统中运行objective c项目时也遇到了同样的问题。你找到解决办法了吗,让我知道