iOS应用使用GoogleMaps崩溃:NSInvalidUnarchiveOperationException无法实例化名为MKMapView的类

时间:2018-07-10 07:53:08

标签: swift google-maps

我未在iOS应用中使用MapKit;我正在通过Pod使用GoogleMaps v2.7.0。 在我的iPhone5s iOS v10.3.3上崩溃了。

我没有领导。有人遇到过吗?

Fatal Exception: NSInvalidUnarchiveOperationException
0  CoreFoundation                 0x18d946fe0 __exceptionPreprocess
1  libobjc.A.dylib                0x18c3a8538 objc_exception_throw
2  CoreFoundation                 0x18d946f28 -[NSException initWithCoder:]
3  UIKit                          0x1940ce4b4 UINibDecoderDecodeObjectForValue
4  UIKit                          0x1940ce760 UINibDecoderDecodeObjectForValue
5  UIKit                          0x1940ce328 -[UINibDecoder decodeObjectForKey:]
6  UIKit                          0x193d5df84 -[UIView initWithCoder:]
7  UIKit                          0x1940ce5e8 UINibDecoderDecodeObjectForValue
8  UIKit                          0x1940ce760 UINibDecoderDecodeObjectForValue
9  UIKit                          0x1940ce328 -[UINibDecoder decodeObjectForKey:]
10 UIKit                          0x193d5df84 -[UIView initWithCoder:]
11 UIKit                          0x1940ce5e8 UINibDecoderDecodeObjectForValue
12 UIKit                          0x1940ce328 -[UINibDecoder decodeObjectForKey:]
13 UIKit                          0x193f80114 -[UIRuntimeConnection initWithCoder:]
14 UIKit                          0x1940ce5e8 UINibDecoderDecodeObjectForValue
15 UIKit                          0x1940ce760 UINibDecoderDecodeObjectForValue
16 UIKit                          0x1940ce328 -[UINibDecoder decodeObjectForKey:]
17 UIKit                          0x193f7f454 -[UINib instantiateWithOwner:options:]
18 UIKit                          0x193ddfe6c -[UIViewController _loadViewFromNibNamed:bundle:]
19 UIKit                          0x193baa0b0 -[UIViewController loadView]
20 UIKit                          0x193a787ac -[UIViewController loadViewIfRequired]
21 UIKit                          0x193a90590 -[UIViewController __viewWillAppear:]
22 UIKit                          0x193c14e18 -[UINavigationController _startCustomTransition:]
23 UIKit                          0x193b2f7bc -[UINavigationController _startDeferredTransitionIfNeeded:]
24 UIKit                          0x193b2f424 -[UINavigationController __viewWillLayoutSubviews]
25 UIKit                          0x193b2f388 -[UILayoutContainerView layoutSubviews]

1 个答案:

答案 0 :(得分:0)

就我而言,我忘记在情节提要中删除MKMapView。所以删除它解决了我的问题。大声笑