bil*_*y91 17 objective-c interface-builder ios
这个问题让我真的很疯狂.Xcode正在我项目的不同位置寻找故事板.我尝试删除文件,再次添加,清理项目等,但没有运气.
这是错误.
cd /Users/fmartin91/Projects/loovin/loovin-ios
setenv IBSC_MINIMUM_COMPATIBILITY_VERSION 7.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv XCODE_DEVELOPER_USR_PATH /Applications/Xcode.app/Contents/Developer/usr/bin/..
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool --errors --warnings --notices --minimum-deployment-target 7.0 --output-format human-readable-text --compile /Users/fmartin91/Projects/loovin/loovin-ios/Build/Products/Debug-iphonesimulator/loovin.app/Base.lproj/LOOVProductIndex.storyboardc /Users/fmartin91/Projects/Base.lproj/LOOVProductIndex.storyboard
/* com.apple.ibtool.errors */
/Users/fmartin91/Projects/Base.lproj/LOOVProductIndex.storyboard:
error: Interface Builder could not open the document
"LOOVProductIndex.storyboard" because it does not exist.
Run Code Online (Sandbox Code Playgroud)
Nik*_*uhe 19
我可以通过杀死来解决这个问题ibtoold:
$ sudo killall -9 ibtoold
Run Code Online (Sandbox Code Playgroud)
为什么ibtool还需要一个守护进程呢?
tde*_*ine 13
您的故事板不在NSBundle mainbundle中.这个问题可能是由于"构建阶段"问题中的"复制捆绑资源"造成的.
为了更正它,验证您的故事板文件是否在所有目标的"复制包资源"中.在项目导航器上选择项目文件,选择Build phases选项卡并选中它.
小智 6
当您将文件上传到没有 zip 的谷歌驱动器时,它会自动附加扩展名.storyboardto .xml,因此当您下载它时,显然该文件将不存在。
要解决此问题,请转到:
[项目文件夹] > [项目文件夹] > [Base.lproj]
将会有一个 .storyboard.xml 扩展类型的文件,您必须将其重命名为.storyboard扩展名。这样你的工作就完成了。
故事板错误解决视觉指南:
我有一个非常类似的问题,花了几个小时才能解决。显然,xcode将自己锁定在某种奇怪的状态,即项目资源管理器可以看到xib文件,而编译则看不到。最后,当我将文件检查器中的位置从“相对”更改为“组”到“相对于项目”时,此问题得到解决。我是通过在常规文本编辑器中比较project.pbxproj文件来搜索任何线索而得到的。
| 归档时间: |
|
| 查看次数: |
16659 次 |
| 最近记录: |