.storyboard文件出错

错误提示:

Interface Builder was unable to determine the type of "iPhone.storyboard". This may be due to a miss

新建一个storyboard文件,右键->Open As -> Source Code打开


</br>
复制顶部的这部分代码


</br>
替换掉内容出错的storyboard文件的这部分语句,command + b编译,完成
<pre>
<code>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
</code>
<code>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
</code>
<code><dependencies></code>
<code>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/></code>
<code></dependencies></code>
</pre>

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容