2017-09-17 28 views
-1

加载这是模块文本:的应用程序不会在推出

2017-09-17 01:39:10.218262-0500 Metropolitan League 1.5.2[2274:615110] Unknown class _TtC25Metropolitan_League_1_5_111OpenMapView in Interface Builder file. 
2017-09-17 01:39:10.256692-0500 Metropolitan League 1.5.2[2274:615110] Unknown class _TtC25Metropolitan_League_1_5_27mapView in Interface Builder file. 
2017-09-17 01:39:10.290714-0500 Metropolitan League 1.5.2[2274:615110] libMobileGestalt MobileGestaltSupport.m:153: pid 2274 (Metropolitan League 1.5.2) does not have sandbox access for frZQaeyWLUvLjeuEK43hmg and IS NOT appropriately entitled 
2017-09-17 01:39:10.290764-0500 Metropolitan League 1.5.2[2274:615110] libMobileGestalt MobileGestalt.c:550: no access to InverseDeviceID (see <rdar://problem/11744455>) 
2017-09-17 01:39:10.337915-0500 Metropolitan League 1.5.2[2274:615110] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x12bd12660> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key mapView.' 
*** First throw call stack: 
(0x188026fe0 0x186a88538 0x188026ca8 0x188a3b64c 0x18e4bc2fc 0x18e6600d8 0x187f47fac 0x18e65eacc 0x18e4bf2d4 0x18e28946c 0x18e157b68 0x18e20fff0 0x18e20fec8 0x18e20f1f8 0x18e20ec2c 0x18e20e7e0 0x18e20e744 0x18e15507c 0x18b345274 0x18b339de8 0x18b339ca8 0x18b2b534c 0x18b2dc3ac 0x18b2dce78 0x187fd49a8 0x187fd2630 0x187f02dc4 0x18e1c2384 0x18e1bd058 0x1000f27a8 0x186f1159c) 
libc++abi.dylib: terminating with uncaught exception of type NSException 
(lldb) 

什么都做,我需要寻找在故事板和快捷的文件,将这个问题?

该类正确命名和连接。

+0

您的界面生成器中可能有一个死掉的'IBOutlet'。 –

+0

可能重复[这是什么意思? “'NSUnknownKeyException',原因:...这个类不是关键字X的编码兼容值”](https://stackoverflow.com/questions/3088059/what-does-this-mean-nsunknownkeyexception-reason-this- class-is-not-key-v) –

+0

mapView没有死角,我删除了故事板上的额外插口,但没有运气。 – Alexander

回答

1

检查IBOutlet of mapView从故事板中的视图控制器正确连接。这可能是您崩溃的根本原因。

尝试将故事板的mapView重新连接到ViewController类。它会解决你的问题

+0

@亚历山大你有没有试过我上面写的要点来解决? –

+0

它不能解决我的问题。 – Alexander

+0

@Alexander请详细说明您与IBOutlet相关的错误。所以请详细说明一下 –

1

你有一个IBOutlet是无效的。执行以下步骤来解决这个问题:

  1. 转到你的故事板
  2. 单击具有MapView
  3. 点击连接检查器按钮右侧MENY(带有向右箭头)视图控制器/或上的MapView
  4. 右键删除所有网点
  5. 转到你的代码并删除出路的MapView
  6. 重新创建出口
  7. 运行你的项目
+0

现在我的应用程序正在启动,但当我尝试切换到tableview时会冻结。它说“Interface Builder文件中的Unknown class parksTable”。但是我已经删除了连接并重新创建了它,但它仍然无效。从Target继承不会更改任何内容。 – Alexander

+0

@Alexander,结帐[这篇文章](https://stackoverflow.com/questions/24924966/xcode-6-strange-bug-unknown-class-in-interface-builder-file)来解决这个问题。 –

+0

就像我说过的那样,这也不会改变任何事情。我现在的问题是将数据从数据库加载到表视图,因为包含tableview的VC会冻结应用程序 – Alexander

1

这是因为,你可能已经创建了一个名字为'mapView'的Outlet,后来在源代码中将它的名字改成了别的东西。请确认您在用户界面中连接的插座名称和您在源代码中引用的名称相同。如果这不能解决问题,请提供更多详细信息。希望这可以帮助!

+0

情况并非如此。 Xcode是不合作的,因为它会加载mapView,同时说它是一个未知的类。我解决了应用程序未完全启动的问题,但是现在我遇到了一个不同的问题,当我尝试打开表视图 – Alexander

+0

@Alexander时,我的表数据无法加载并冻结,请告诉我们您是如何解决该问题的。请详细说明表格加载问题可能是另一个问题。 – Rishi