CoreData:注释:无法在Google地图sdk iOS 11上加载优化模型错误

时间:2017-10-22 12:03:21

标签: google-maps core-data ios11

我的代码正确地在iOS 10.3上运行。但是在模拟器或我的iPhone上的iOS 11上出现此错误:

CoreData: annotation:  Failed to load optimized model at path '/Users/imohammadi/Library/Developer/CoreSimulator/Devices/054E361B-16B2-43D6-9708-A59401DE29B8/data/Containers/Bundle/Application/71EBDC7D-4708-4349-A54B-08E3F6E38D48/iAtlas.app/GoogleMaps.bundle/GMSCacheStorage.momd/Storage.omo'

当应用程序第一次运行时,谷歌地图正确运行,但在关闭并再次运行后,应用程序想要从缓存中加载切片并因错误而崩溃。 降级GoogleMaps 2.2并升级到上一版本cocoapods未解决错误。

所有日志都在这里:

["/Users/imohammadi/Library/Developer/CoreSimulator/Devices/054E361B-16B2-43D6-9708-A59401DE29B8/data/Containers/Data/Application/71371217-5D6D-4BC1-97C4-4ED1FEBDF8EF/Documents"]
2017-10-22 15:39:11.908262+0330 iAtlas[19195:648732] [MC] Lazy loading NSBundle MobileCoreServices.framework
2017-10-22 15:39:11.909174+0330 iAtlas[19195:648732] [MC] Loaded MobileCoreServices.framework
2017-10-22 15:39:11.927694+0330 iAtlas[19195:648732] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /Users/imohammadi/Library/Developer/CoreSimulator/Devices/054E361B-16B2-43D6-9708-A59401DE29B8/data/Containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
CoreData: annotation:  Failed to load optimized model at path '/Users/imohammadi/Library/Developer/CoreSimulator/Devices/054E361B-16B2-43D6-9708-A59401DE29B8/data/Containers/Bundle/Application/F46E955A-F5B6-42A8-B435-3A488DB69C55/iAtlas.app/GoogleMaps.bundle/GMSCacheStorage.momd/Storage.omo'
CoreData: annotation:  Failed to load optimized model at path '/Users/imohammadi/Library/Developer/CoreSimulator/Devices/054E361B-16B2-43D6-9708-A59401DE29B8/data/Containers/Bundle/Application/F46E955A-F5B6-42A8-B435-3A488DB69C55/iAtlas.app/GoogleMaps.bundle/GMSCacheStorage.momd/Storage.omo'
CoreData: annotation:  Failed to load optimized model at path '/Users/imohammadi/Library/Developer/CoreSimulator/Devices/054E361B-16B2-43D6-9708-A59401DE29B8/data/Containers/Bundle/Application/F46E955A-F5B6-42A8-B435-3A488DB69C55/iAtlas.app/GoogleMaps.bundle/GMSCacheStorage.momd/Storage.omo'
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 19195, TID: 649127, Thread name: com.google.Maps.LabelingBehavior, Queue name: com.apple.root.default-qos.overcommit, QoS: 21
Backtrace:
4   iAtlas                              0x000000010f3049a4 GMSIsApplicationInBackground + 53
5   iAtlas                              0x000000010f2f2bfa -[GMSForegroundDispatchQueue initWithName:targetQueue:] + 269
6   iAtlas                              0x000000010f3d2a6e _ZN7gmscore6vector4text8GlyphSetC2ERKNS_4base10reffed_ptrINS0_16TextureAtlasPoolEEEPU28objcproto17OS_dispatch_queue8NSObjectPK8__CTFontff + 344
7   iAtlas                              0x000000010f3d1ed8 _ZN7gmscore6vector4text10GlyphCache11GetGlyphSetEPK8__CTFontf + 214
8   iAtlas                              0x000000010f3cf98e _ZN7gmscore6vector4text6GLText14PrefetchGlyphsERKNS_4base10reffed_ptrINS1_10GlyphCacheEEERKNSt3__16vectorItNS9_9allocatorItEEEEPK8__CTFontf + 22
9   iAtlas                              0x000000010f3cfa91 _ZN7gmscore6vector4text6GLText14PrefetchGlyphsERKNS_4base10reffed_ptrINS1_10GlyphCacheEEEPK8__CTLinebf + 207
10  iAtlas                              0x000000010f32775f _ZN7gmscore6vector12GLPointLabel22PrefetchGlyphsForGroupEPNS0_12GLLabelGroupE + 181
11  iAtlas                              0x000000010f327687 _ZN7gmscore6vector12GLPointLabel14PrefetchGlyphsEv + 33
12  iAtlas                              0x000000010f3966aa _ZN7gmscore6vector16LabelingBehavior23CreatePendingOperationsERKNSt3__13setINS_4base10reffed_ptrINS0_7GLLabelEEENS2_4lessIS7_EENS2_9allocatorIS7_EEEESE_SE_NS0_13LabelDrawModeE + 1096
13  iAtlas                              0x000000010f39601d _ZN7gmscore6vector16LabelingBehavior14RunLabelingJobERKNS_4base10reffed_ptrINS1_11LabelingJobEEE + 357
14  iAtlas                              0x000000010f395eaa ___ZN7gmscore6vector16LabelingBehavior14CommitInternalEPNS_8renderer14EntityRendererE_block_invoke + 22
15  Foundation                          0x0000000113fad948 __NSThreadPerformPerform + 334
16  CoreFoundation                      0x0000000114bac2b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
17  CoreFoundation                      0x0000000114c4bd31 __CFRunLoopDoSource0 + 81
18  CoreFoundation                      0x0000000114b90c19 __CFRunLoopDoSources0 + 185
19  CoreFoundation                      0x0000000114b901ff __CFRunLoopRun + 1279
20  CoreFoundation                      0x0000000114b8fa89 CFRunLoopRunSpecific + 409
21  Foundation                          0x0000000113f67e5e -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 274
22  iAtlas                              0x000000010f3d1165 -[GMSx_GTMSimpleWorkerThread main] + 337
23  Foundation                          0x0000000113f758ac __NSThread__start__ + 1197
24  libsystem_pthread.dylib             0x00000001162f36c1 _pthread_body + 340
25  libsystem_pthread.dylib             0x00000001162f356d _pthread_body + 0
26  libsystem_pthread.dylib             0x00000001162f2c5d thread_start + 13
2017-10-22 15:39:13.649828+0330 iAtlas[19195:649127] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 19195, TID: 649127, Thread name: com.google.Maps.LabelingBehavior, Queue name: com.apple.root.default-qos.overcommit, QoS: 21
Backtrace:
4   iAtlas                              0x000000010f3049a4 GMSIsApplicationInBackground + 53
5   iAtlas                              0x000000010f2f2bfa -[GMSForegroundDispatchQueue initWithName:targetQueue:] + 269
6   iAtlas                              0x000000010f3d2a6e _ZN7gmscore6vector4text8GlyphSetC2ERKNS_4base10reffed_ptrINS0_16TextureAtlasPoolEEEPU28objcproto17OS_dispatch_queue8NSObjectPK8__CTFontff + 344
7   iAtlas                              0x000000010f3d1ed8 _ZN7gmscore6vector4text10GlyphCache11GetGlyphSetEPK8__CTFontf + 214
8   iAtlas                              0x000000010f3cf98e _ZN7gmscore6vector4text6GLText14PrefetchGlyphsERKNS_4base10reffed_ptrINS1_10GlyphCacheEEERKNSt3__16vectorItNS9_9allocatorItEEEEPK8__CTFontf + 22
9   iAtlas                              0x000000010f3cfa91 _ZN7gmscore6vector4text6GLText14PrefetchGlyphsERKNS_4base10reffed_ptrINS1_10GlyphCacheEEEPK8__CTLinebf + 207
10  iAtlas                              0x000000010f32775f _ZN7gmscore6vector12GLPointLabel22PrefetchGlyphsForGroupEPNS0_12GLLabelGroupE + 181
11  iAtlas                              0x000000010f327687 _ZN7gmscore6vector12GLPointLabel14PrefetchGlyphsEv + 33
12  iAtlas                              0x000000010f3966aa _ZN7gmscore6vector16LabelingBehavior23CreatePendingOperationsERKNSt3__13setINS_4base10reffed_ptrINS0_7GLLabelEEENS2_4lessIS7_EENS2_9allocatorIS7_EEEESE_SE_NS0_13LabelDrawModeE + 1096
13  iAtlas                              0x000000010f39601d _ZN7gmscore6vector16LabelingBehavior14RunLabelingJobERKNS_4base10reffed_ptrINS1_11LabelingJobEEE + 357
14  iAtlas                              0x000000010f395eaa ___ZN7gmscore6vector16LabelingBehavior14CommitInternalEPNS_8renderer14EntityRendererE_block_invoke + 22
15  Foundation                          0x0000000113fad948 __NSThreadPerformPerform + 334
16  CoreFoundation                      0x0000000114bac2b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
17  CoreFoundation                      0x0000000114c4bd31 __CFRunLoopDoSource0 + 81
18  CoreFoundation                      0x0000000114b90c19 __CFRunLoopDoSources0 + 185
19  CoreFoundation                      0x0000000114b901ff __CFRunLoopRun + 1279
20  CoreFoundation                      0x0000000114b8fa89 CFRunLoopRunSpecific + 409
21  Foundation                          0x0000000113f67e5e -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 274
22  iAtlas                              0x000000010f3d1165 -[GMSx_GTMSimpleWorkerThread main] + 337
23  Foundation                          0x0000000113f758ac __NSThread__start__ + 1197
24  libsystem_pthread.dylib             0x00000001162f36c1 _pthread_body + 340
25  libsystem_pthread.dylib             0x00000001162f356d _pthread_body + 0
26  libsystem_pthread.dylib             0x00000001162f2c5d thread_start + 13
2017-10-22 15:39:15.284603+0330 iAtlas[19195:649136] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1754 received sct extension length is less than sct data length
2017-10-22 15:39:15.562982+0330 iAtlas[19195:649136] [BoringSSL] Function boringssl_context_get_peer_sct_list: line 1754 received sct extension length is less than sct data length
2017-10-22 15:39:16.191452+0330 iAtlas[19195:648732] Google Maps SDK for iOS version: 2.4.30121.0
2017-10-22 15:39:16.195285+0330 iAtlas[19195:649136] TIC Read Status [1:0x0]: 1:57
2017-10-22 15:39:16.195452+0330 iAtlas[19195:649136] TIC Read Status [1:0x0]: 1:57

1 个答案:

答案 0 :(得分:0)

Google问题跟踪器中报告了此问题:

https://issuetracker.google.com/issues/64504919

我可以看到,该问题已于今日(2017年10月24日)标记为已解决。谷歌代表写了

  

我们认为此问题应在Maps iOS SDK v2.5版本中解决。如果仍然出现此问题,请告知我们。

您似乎必须将SDK更新到最新版本2.5才能解决问题。

<强>更新

看起来版本2.5中没有解决该问题,该问题已在Google问题跟踪器中重新启用。