无效的参数不令人满意:nibNameMap!= nil [英] Invalid parameter not satisfying: nibNameMap != nil

查看:97
本文介绍了无效的参数不令人满意:nibNameMap!= nil的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我正在关注YouTube上的一个教程. https://www.youtube.com/watch?v=4ymz6i07DRM&feature = youtu.be

So I was following a tutorial on YouTube. https://www.youtube.com/watch?v=4ymz6i07DRM&feature=youtu.be

我所做的正是他所做的.并编辑了一些内容,因为我使用的是最新的Xcode 7.

Ive done exactly what he did. And edited a few things because I'm using the latest Xcode 7.

当我运行该应用程序时,模拟器将打开,并出现启动屏幕.之后,它立即返回Xcode,并在控制台中显示错误

When i run the application, the emulator opens, and launch screen appears. Immediately after that it goes back to the Xcode with an error in the console saying

*** Assertion failure in -[UIStoryboard initWithBundle:storyboardFileName:identifierToNibNameMap:identifierToExternalStoryboardReferenceMap:designatedEntryPointIdentifier:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3473.13/UIStoryboard.m:63

*** Assertion failure in -[UIStoryboard initWithBundle:storyboardFileName:identifierToNibNameMap:identifierToExternalStoryboardReferenceMap:designatedEntryPointIdentifier:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3473.13/UIStoryboard.m:63

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: nibNameMap != nil'

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: nibNameMap != nil'

我曾经尝试过在所有地方搜索,但找不到找到摆脱它的方法.如果有人知道如何解决此问题,请提供帮助.

Ive tried searching everywhere but I couldn't find a way to get rid of this. Please help if anyone knows how to solve this.

推荐答案

我看到您使用的教程涉及情节提要.

I see the tutorial you're using involves Storyboards.

检查您是否在要编辑的情节提要中正确勾选了"Is Initial View Controller".如果未选中此复选框,那么我希望您看到此错误.

Check that you have ticked "Is Initial View Controller" appropriately in the storyboard you're editing. If this is not checked then I'd expect the error you're seeing.

这篇关于无效的参数不令人满意:nibNameMap!= nil的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆