- 博客(1)
- 收藏
- 关注
原创 google_mlkit_text_recognition识别文字IOS端terminating due to uncaught exception of type NSException处理
Flutter项目使用google_mlkit_text_recognition时iOS端出现崩溃,错误为NSInvalidArgumentException,原因是appTransportSecurity配置被错误处理。当Info.plist中的NSAppTransportSecurity被设为布尔值而非字典时,系统尝试对其调用objectForKey:方法导致崩溃。解决方案是修改appAllowsInsecureRequests方法,添加类型安全检查:处理未配置(默认拒绝)、字典类型(标准配置)
2025-10-09 11:33:22
224
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅