无法将笔尖加载到捆绑包中。奇怪的错误。 Swift iOS
我在AppStore中有一个应用程序。我更改了一些内容,现在我想将应用程序更新为新版本。
但是,当我更新应用程序时,安装了旧版本并开始运行时,它会出现错误:
由于未被发现的例外,终止应用程序 “ nsinternalinconsistencyException”,原因:'无法加载笔尖 捆绑包:'nsbundle </private/var/containers/bundle/application/5b180aec-c797-4fef-bb0f-bb0f-bb0f-ca6a0c31d4e4/swipebaby.app> (已加载)'with name'nbe-fw-o9r-view-3ql-iw-xaj''
如果然后再次运行该应用程序,一切都很好,一切都顺利运行。我没有更改我相信的.xib文件的名称。而且我不知道错误中给出的名称。它确实启动了启动屏幕。
难道是我在新版本中删除的代码中的某个地方引用了XIB文件,然后在应用程序的第二次启动时,由于某种原因,它被忽略了吗? 有没有办法找出错误的XIB文件?
任何帮助都将受到赞赏!
I have an app in the AppStore. I've changed some stuff and now I want to update the app to the new version.
However when I update the app, while the old version is installed and it starts running, it crashes with an error :
Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: 'Could not load NIB in
bundle: 'NSBundle
</private/var/containers/Bundle/Application/5B180AEC-C797-4FEF-BB0F-CA6A0C31D4E4/SwipeBaby.app>
(loaded)' with name 'NbE-fw-O9r-view-3qL-iW-Xaj''
If I then run the app again, all is good and everything runs smoothly. I haven't changed the names of .xib files I believe. And I don't recognize the name that is given in the error. It does start the LaunchScreen.
Could it be that a xib file is referenced somewhere in my code that I deleted in the new version, and then at the second launch of the app it gets ignored for some reason?
Is there a way to find out which xib file is meant by the error?
Any help is appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到了它:)
我试图将一个子视图添加到ViewControllers视图中,但尚未加载。
我做的是我有一个loginviewController,并将其传递给另一个名为LoadNames的类作为委托,因此
var委托:loginviewController?
。然后我检查了:但是我使用loginviewController的init()调用此代码。但是,当然,代表也没有回来。
仅当用户更新为新版本时,才调用此代码。因此,应用程序第二次运行时,一切都很好。
我发现,由于Firebase Crashlytics。
Found it :)
I was trying to add a subview to a ViewControllers view, that wasn't loaded yet.
What I did was I had a LoginViewController and passed it to another class called LoadNames as a delegate, so
var delegate: LoginViewController?
. Then I checked with :BUT I used the init() of LoginViewController to call this piece of code.. so the view of LoginViewController wasn't even loaded then. But of course the delegate didn't return nil either.
This piece of code was only called when the user updated to a new version. Therefore, the second time the app runs, everything runs fine.
I found out, because of Firebase Crashlytics.