ios - 由于未捕获的异常 'NSInvalidArgumentException' 而终止应用程序 ...原因( key : networkCarrier)

标签 ios exception arguments

我在运行 iPad 模拟器时在应用程序中遇到此错误

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: networkCarrier)'

请帮我解决这个问题......它进入主线程

return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

最佳答案

添加异常断点。这将导致代码在错误发生的地方停止。转到 xcode->View->Navigators->Show Breakpoint Navigator。在左 Pane 中单击“+”并选择“添加异常断点”。运行应用程序。

关于ios - 由于未捕获的异常 'NSInvalidArgumentException' 而终止应用程序 ...原因( key : networkCarrier),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14153085/

相关文章:

ios - 通过导航 Controller 取消 View 后应用程序崩溃?

ios - '安装应用程序' AppStoreView 就像 iOS 的 Facebook 应用程序一样

haskell - 在 Happstack 请求处理程序中捕获程序错误

c - 使用 execve 时传递整数参数

iphone - 更新 Cocos2d iPhone 中 HUD 上的标签?

ios - Storyboard中有太多 View Controller 是否会减慢 IOS 应用程序的速度?

java - 读取对象时发生 StreamCorrupedException

ruby - 为什么带有无效参数的范围有时不会导致参数错误?

c - 如何正确包装带有动态参数数量的函数?

javascript - 比较参数与 JavaScript 中的参数