在iOS 11+上,Geolocation.getCurrentPosition在HTTPS上崩溃

时间:2018-01-19 21:43:04

标签: ios geolocation ios11

我在我的应用中嵌入了一个网站,并使用以下方式获取用户的位置

Geolocation.getCurrentPosition()

这在以前版本的iOS上运行良好,但在iOS11 +上,应用程序总是崩溃。如果我的服务器是HTTPS,该应用程序也只会崩溃。有什么想法吗?

以下是崩溃日志:



Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib        	0x00000001840b82e8 0x184096000 + 140008
1   libsystem_pthread.dylib       	0x00000001841cd2f8 0x1841ca000 + 13048
2   libsystem_c.dylib             	0x0000000184027060 0x183fc4000 + 405600
3   libsystem_c.dylib             	0x0000000184026fc8 0x183fc4000 + 405448
4   libc++abi.dylib               	0x00000001837c3068 0x1837c1000 + 8296
5   libc++abi.dylib               	0x00000001837c3210 0x1837c1000 + 8720
6   libobjc.A.dylib               	0x00000001837ec810 0x1837e4000 + 34832
7   MyApp                      	        0x0000000101e24e74 0x100cc8000 + 18206324
8   libc++abi.dylib               	0x00000001837db54c 0x1837c1000 + 107852
9   libc++abi.dylib               	0x00000001837db158 0x1837c1000 + 106840
10  libobjc.A.dylib               	0x00000001837ec6e8 0x1837e4000 + 34536
11  CoreFoundation                	0x0000000184468cc4 0x184460000 + 36036
12  GraphicsServices              	0x0000000186312f84 0x186308000 + 44932
13  UIKit                         	0x000000018dbbf804 0x18db4c000 + 473092
14  MyApp                      	        0x0000000100d22468 0x100cc8000 + 369768
15  libdyld.dylib                 	0x0000000183f8856c 0x183f87000 + 5484




0 个答案:

没有答案