冰天糖葫芦 2022-07-04 16:55 采纳率: 50%
浏览 129
已结题

ios flutter_bmflocation 定位报错

ios flutter_bmflocation 定位报错

**问题相关代码,请勿粘贴截图 **

//        NSLog(@"ios-地图sdk初始化\n(AK = %@,经纬度类型 = %lu)", dic[@"apiKey"], (unsigned long)coordType);
        // 要使用百度地图,请先启动BMKMapManager
        BMKMapManager *_mapManager = [[BMKMapManager alloc] init];//这一行报错,代码是文件FlutterBmfbasePlugin.m中的
        // 经纬度类型设置成功
        if ([BMKMapManager setCoordinateTypeUsedInBaiduMapSDK:coordType]) {
            NSLog(@"ios-经纬度类型设置成功");
        } else {
            NSLog(@"ios-经纬度类型设置失败");
        }

**运行结果及报错内容 **

thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x100c2daf8)
    frame #0: 0x0000000100c2daf8 Runner`TLSv1_2_enc_data
    frame #1: 0x0000000100635f80 Runner`SSL_CTX_new + 96
    frame #2: 0x0000000100586804 Runner`_baidu_vi::CVSocketMan::CVSocketMan() + 240
    frame #3: 0x00000001005c6cbc Runner`_baidu_vi::vi_map::CVHttpClient::CVHttpClient() + 740
    frame #4: 0x000000010057dea8 Runner`_baidu_framework::tagHttpClientItem::Init() + 80
    frame #5: 0x000000010057e260 Runner`_baidu_framework::CVHttpClientPool::InitHttpPool() + 100
    frame #6: 0x000000010057e1b4 Runner`_baidu_framework::CVHttpClientPool::CVHttpClientPool() + 80
    frame #7: 0x000000010057da54 Runner`_baidu_framework::CVHttpClientPool::GetInstance() + 100
    frame #8: 0x000000010057d964 Runner`_baidu_framework::IVHttpClientPoolFactory::CreateInstance(_baidu_vi::CVString const&, void**) + 92
    frame #9: 0x0000000100569570 Runner`_baidu_framework::CVComServer::ComCreateInstance(_baidu_vi::CVString const&, _baidu_vi::CVString const&, void**) + 108
    frame #10: 0x0000000100560ea8 Runner`-[BMKBaseEngine initEngine] + 248
    frame #11: 0x000000010055edd0 Runner`-[BMKMapManager init] + 84
    frame #12: 0x000000010055ed38 Runner`__31+[BMKMapManager sharedInstance]_block_invoke + 72
    frame #13: 0x0000000101e85fc8 libdispatch.dylib`_dispatch_client_callout + 16
    frame #14: 0x0000000101e87934 libdispatch.dylib`_dispatch_once_callout + 80
    frame #15: 0x000000010055ecec Runner`+[BMKMapManager sharedInstance] + 144
    frame #16: 0x000000010055ed6c Runner`+[BMKMapManager allocWithZone:] + 20
  * frame #17: 0x00000001008fc7f0 Runner`-[FlutterBmfbasePlugin handleMethodCall:result:](self=0x000000028058fe70, _cmd="handleMethodCall:result:", call=0x000000028072aa20, result=0x0000000104601808) at FlutterBmfbasePlugin.m:42:39
    frame #18: 0x00000001046017f8 Flutter`__45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 112
    frame #19: 0x000000010414df00 Flutter`flutter::PlatformViewIOS::HandlePlatformMessage(std::__1::unique_ptr<flutter::PlatformMessage, std::__1::default_delete<flutter::PlatformMessage> >) + 524
    frame #20: 0x00000001044595f0 Flutter`std::__1::__function::__func<fml::internal::CopyableLambda<flutter::Shell::OnEngineHandlePlatformMessage(std::__1::unique_ptr<flutter::PlatformMessage, std::__1::default_delete<flutter::PlatformMessage> >)::$_16>, std::__1::allocator<fml::internal::CopyableLambda<flutter::Shell::OnEngineHandlePlatformMessage(std::__1::unique_ptr<flutter::PlatformMessage, std::__1::default_delete<flutter::PlatformMessage> >)::$_16> >, void ()>::operator()() + 92
    frame #21: 0x00000001043fe39c Flutter`fml::MessageLoopImpl::FlushTasks(fml::FlushType) + 1596
    frame #22: 0x0000000104401994 Flutter`fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
    frame #23: 0x00000001814f8258 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
    frame #24: 0x0000000181481af8 CoreFoundation`__CFRunLoopDoTimer + 1008
    frame #25: 0x000000018147c6b0 CoreFoundation`__CFRunLoopDoTimers + 316
    frame #26: 0x000000018145c3a4 CoreFoundation`__CFRunLoopRun + 1964
    frame #27: 0x000000018146f240 CoreFoundation`CFRunLoopRunSpecific + 572
    frame #28: 0x00000001a1f71988 GraphicsServices`GSEventRunModal + 160
    frame #29: 0x0000000183c6f41c UIKitCore`-[UIApplication _run] + 1080
    frame #30: 0x0000000183a08b88 UIKitCore`UIApplicationMain + 336
    frame #31: 0x0000000100277704 Runner`main at AppDelegate.swift:5:13
    frame #32: 0x00000001016843d0 dyld`start + 444

之前搞Android的没搞过ios,报错看不懂啊

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 7月12日
    • 创建了问题 7月4日

    悬赏问题

    • ¥15 求京东批量付款能替代天诚
    • ¥15 slaris 系统断电后,重新开机后一直自动重启
    • ¥15 51寻迹小车定点寻迹
    • ¥15 谁能帮我看看这拒稿理由啥意思啊阿啊
    • ¥15 关于vue2中methods使用call修改this指向的问题
    • ¥15 idea自动补全键位冲突
    • ¥15 请教一下写代码,代码好难
    • ¥15 iis10中如何阻止别人网站重定向到我的网站
    • ¥15 滑块验证码移动速度不一致问题
    • ¥15 Utunbu中vscode下cern root工作台中写的程序root的头文件无法包含