1

我們正在使用兩個不同框架(AAA庫地圖)&(我們自己的獎勵框架)並使用Google Maps框架的iOS項目。我們面臨的問題是這些框架之間的衝突。發生什麼事情是,當我們從任何一個框架加載Map時,第一個加載正常,但第二個加載應用程序崩潰。我們儘可能地嘗試調試它,但不幸的是我們不能。我們已經耗盡了很多天來探索這個問題,在stackoverflow以及任何其他有用的博客,但不幸的是我們仍然堅持。任何關於這方面的幫助都不會有幫助。谷歌地圖SDK在一個應用程序中的不同框架之間的衝突

我們通過使用谷歌地圖SDK> 2.2.0

AAA圖庫崩潰登錄同一版本的附加以下 與信號SIGSEGV崩潰(代碼SEGV_ACCERR,地址爲0x20 =)驗證這兩個框架

Incident Identifier: 2A1C005F-2363-4C50-B161-CD5E117BAEE7 
CrashReporter Key: 6bb28012df77c6e754e6d45acf729c3018a02007 
Hardware Model:  iPhone7,1 
Process:    CAA [261] 
Path:    /private/var/containers/Bundle/Application/726AAC93-D46D-436C-A928-C0B1FE360B4A/CAA.app/CAA 

Version:    6.23.0913 (6.23.0913) 
Code Type:   ARM-64 (Native) 
Role:    Foreground 
Parent Process:  launchd [1] 



Date/Time:   2017-09-18 16:34:01.4302 +0500 
Launch Time:   2017-09-18 16:33:31.8189 +0500 
OS Version:   iPhone OS 10.3.3 (14G60) 
Report Version:  104 

Exception Type: EXC_BAD_ACCESS (SIGSEGV) 
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000020 
Triggered by Thread: 0 

Filtered syslog: 
None found 

Thread 0 name: Dispatch queue: com.apple.main-thread 
Thread 0 Crashed: 
0 libobjc.A.dylib     0x000000018520fd44 0x1851fc000 + 81220 
1 libobjc.A.dylib     0x000000018520fd44 0x1851fc000 + 81220 
2 Foundation      0x00000001871c7f3c 0x18718d000 + 241468 
3 Foundation      0x00000001871c7ea0 0x18718d000 + 241312 
4 Foundation      0x00000001871c62ac 0x18718d000 + 234156 
5 Foundation      0x00000001871c31cc 0x18718d000 + 221644 
6 Foundation      0x00000001871c2a60 0x18718d000 + 219744 
7 Foundation      0x00000001871c2750 0x18718d000 + 218960 
8 CAA        0x00000001007c6240 -[GMSDisplayLink addClient:forRunLoopModes:] + 1056 
9 CAA        0x00000001007c5de8 -[GMSDisplayLink addClient:] + 144 
10 CAA        0x000000010077392c -[GMSEntityRendererView setUpRenderer] + 156 
11 UIKit       0x000000018c8cf880 0x18c8c5000 + 43136 
12 UIKit       0x000000018c8cfd6c 0x18c8c5000 + 44396 
13 UIKit       0x000000018c8cfc50 0x18c8c5000 + 44112 
14 UIKit       0x000000018c8cfd88 0x18c8c5000 + 44424 
15 UIKit       0x000000018c8cfc50 0x18c8c5000 + 44112 
16 UIKit       0x000000018c8cfd88 0x18c8c5000 + 44424 
17 UIKit       0x000000018c8cfc50 0x18c8c5000 + 44112 
18 UIKit       0x000000018c8cfd88 0x18c8c5000 + 44424 
19 UIKit       0x000000018c8cfc50 0x18c8c5000 + 44112 
20 UIKit       0x000000018c8cfd88 0x18c8c5000 + 44424 
21 UIKit       0x000000018c8cfc50 0x18c8c5000 + 44112 
22 UIKit       0x000000018c8dbda8 0x18c8c5000 + 93608 
23 UIKit       0x000000018c8dbbc8 0x18c8c5000 + 93128 
24 UIKit       0x000000018c9962f4 0x18c8c5000 + 856820 
25 UIKit       0x000000018c98c764 0x18c8c5000 + 816996 
26 UIKit       0x000000018c98b870 0x18c8c5000 + 813168 
27 UIKit       0x000000018c98b424 0x18c8c5000 + 812068 
28 UIKit       0x000000018c98b388 0x18c8c5000 + 811912 
29 UIKit       0x000000018c8d1cc0 0x18c8c5000 + 52416 
30 QuartzCore      0x0000000189ac2274 0x1899ab000 + 1143412 
31 QuartzCore      0x0000000189ab6de8 0x1899ab000 + 1097192 
32 QuartzCore      0x0000000189ab6ca8 0x1899ab000 + 1096872 
33 QuartzCore      0x0000000189a3234c 0x1899ab000 + 553804 
34 QuartzCore      0x0000000189a593ac 0x1899ab000 + 713644 
35 UIKit       0x000000018cb53168 0x18c8c5000 + 2679144 
36 UIKit       0x000000018d0c9404 0x18c8c5000 + 8406020 
37 UIKit       0x000000018d0c95a8 0x18c8c5000 + 8406440 
38 CoreFoundation     0x000000018675142c 0x186676000 + 898092 
39 CoreFoundation     0x0000000186750d9c 0x186676000 + 896412 
40 CoreFoundation     0x000000018674e9a8 0x186676000 + 887208 
41 CoreFoundation     0x000000018667eda4 0x186676000 + 36260 
42 GraphicsServices    0x00000001880e9074 0x1880dd000 + 49268 
43 UIKit       0x000000018c939c9c 0x18c8c5000 + 478364 
44 CAA        0x000000010011682c main (main.m:14) 
45 libdyld.dylib     0x000000018568d59c 0x185689000 + 17820 

補償模型墜毀日誌是

Incident Identifier: 9F61D68F-E3A5-474D-8CE0-6252C0973422 
CrashReporter Key: 6bb28012df77c6e754e6d45acf729c3018a02007 
Hardware Model:  iPhone7,1 
Process:    CAA [264] 
Path:    /private/var/containers/Bundle/Application/726AAC93-D46D-436C-A928-C0B1FE360B4A/CAA.app/CAA 

Version:    6.23.0913 (6.23.0913) 
Code Type:   ARM-64 (Native) 
Role:    Foreground 
Parent Process:  launchd [1] 



Date/Time:   2017-09-18 16:34:28.1863 +0500 
Launch Time:   2017-09-18 16:34:07.2193 +0500 
OS Version:   iPhone OS 10.3.3 (14G60) 
Report Version:  104 

Exception Type: EXC_BAD_ACCESS (SIGSEGV) 
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000020 
Triggered by Thread: 0 

Filtered syslog: 
None found 

Thread 0 name: Dispatch queue: com.apple.main-thread 
Thread 0 Crashed: 
0 libobjc.A.dylib     0x000000018520fd44 0x1851fc000 + 81220 
1 libobjc.A.dylib     0x000000018520fd44 0x1851fc000 + 81220 
2 Foundation      0x00000001871c7f3c 0x18718d000 + 241468 
3 Foundation      0x00000001871c7ea0 0x18718d000 + 241312 
4 Foundation      0x00000001871c62ac 0x18718d000 + 234156 
5 Foundation      0x00000001871c31cc 0x18718d000 + 221644 
6 Foundation      0x00000001871c2a60 0x18718d000 + 219744 
7 Foundation      0x00000001871c2750 0x18718d000 + 218960 
8 CAA_Reward      0x0000000101d03c40 0x101aa0000 + 2505792 
9 CAA_Reward      0x0000000101d037e8 0x101aa0000 + 2504680 
10 CAA_Reward      0x0000000101ca8b08 0x101aa0000 + 2132744 
11 UIKit       0x000000018c8cf880 0x18c8c5000 + 43136 
12 UIKit       0x000000018c8cfd6c 0x18c8c5000 + 44396 
13 UIKit       0x000000018c8cfc50 0x18c8c5000 + 44112 
14 UIKit       0x000000018c8cfd88 0x18c8c5000 + 44424 
15 UIKit       0x000000018c8cfc50 0x18c8c5000 + 44112 
16 UIKit       0x000000018c8dbda8 0x18c8c5000 + 93608 
17 UIKit       0x000000018c8dbbc8 0x18c8c5000 + 93128 
18 CAA_Reward      0x0000000101adb0b8 0x101aa0000 + 241848 
19 UIKit       0x000000018c909c54 0x18c8c5000 + 281684 
20 UIKit       0x000000018c909bd4 0x18c8c5000 + 281556 
21 UIKit       0x000000018c8f4148 0x18c8c5000 + 192840 
22 UIKit       0x000000018c9094b8 0x18c8c5000 + 279736 
23 UIKit       0x000000018c908fd4 0x18c8c5000 + 278484 
24 UIKit       0x000000018c90436c 0x18c8c5000 + 258924 
25 UIKit       0x000000018c8d4f80 0x18c8c5000 + 65408 
26 UIKit       0x000000018d0cea20 0x18c8c5000 + 8428064 
27 UIKit       0x000000018d0c917c 0x18c8c5000 + 8405372 
28 UIKit       0x000000018d0c95a8 0x18c8c5000 + 8406440 
29 CoreFoundation     0x000000018675142c 0x186676000 + 898092 
30 CoreFoundation     0x0000000186750d9c 0x186676000 + 896412 
31 CoreFoundation     0x000000018674e9a8 0x186676000 + 887208 
32 CoreFoundation     0x000000018667eda4 0x186676000 + 36260 
33 GraphicsServices    0x00000001880e9074 0x1880dd000 + 49268 
34 UIKit       0x000000018c939c9c 0x18c8c5000 + 478364 
35 CAA        0x00000001000ba82c main (main.m:14) 
36 libdyld.dylib     0x000000018568d59c 0x185689000 + 17820 
+0

請顯示您的代碼並提及這些框架的名稱,否則幾乎不可能給您一個確切的答案。 –

+0

正如你所說已經通過使用另一個框架包含在您的項目中的谷歌地圖。然後嘗試避免將單獨的Google地圖框架添加到您的項目中。嘗試將Google地圖導入任何您想要的地方。如果可能的話還分享代碼 –

+0

我有更新我的問題。請檢查這一點。 –

回答

0

一旦我有同樣的問題。我試圖在同一時間添加Bolts和FacebookSDK。我得到重複的錯誤。我搜索了一些地方,我找到了解決方案。 我添加使用豆莢

pod 'Bolts-SDK' 
pod 'Facebook-SDK', 'sdk_version' 

嘗試添加使用PODS框架將SDK。

+0

很抱歉,您的解決方案無法解決此問題。我們嘗試添加帶pod的Google地圖SDK,但無法正常工作。 –

+0

基本上它不是在這些框架中使用的pod依賴。這些是開放式框架,如iOS中的CoreLocation,需要手動添加。這些框架在內部使用GoogleMaps SDK。因此你的答案是無效的。謝謝你,回答。 –

相關問題