上午开工程出现, "Interface builder was unable to determine the type of xxx.xib" 错误
svn上报冲突(conflict),xib文件爆红

郁闷

百度 google stack 没有找到答案

于是只能,喝口奶自己研究
xib的真身是xml文件,

于是右键 OpenAs Source CodeiOS Interface builder was unable to determine the type of xxx.xib / xxx.storyboard
看源代码
打开便看到嫌疑犯 iOS Interface builder was unable to determine the type of xxx.xib / xxx.storyboard
根标签下有冲突,于是,将"==="删除.删除后编译 又爆出 "Extra content at the end of the document at 331Line" 错误
找到331行,是xml文件的最后一行,错误说"有多余内容"
回到刚才删除冲突的位置,发现有两个根标签,一模一样内容,xml标签只允许一头配一尾,所以尝试删一个
编译,ok

前一晚刚升级了xcode 和 mac系统, 应该是升级系统产生的冲突吧 

相关文章: