gpt4 book ai didi

swift - iOS 应用程序使用 GoogleMaps 崩溃 : NSInvalidUnarchiveOperationException Could not instantiate class named MKMapView

转载 作者:行者123 更新时间:2023-11-30 11:21:08 33 4
gpt4 key购买 nike

我没有在我的 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]

最佳答案

就我而言,我忘记删除 Storyboard中的 MKMapView。所以删除它解决了我的问题。哈哈

关于swift - iOS 应用程序使用 GoogleMaps 崩溃 : NSInvalidUnarchiveOperationException Could not instantiate class named MKMapView,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51259868/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com