You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

iOS/iPadOS 17.1部分二维码扫描失效问题技术问询

iOS 17.1二维码扫描异常问题

升级至iOS 17.1(含iPadOS 17.1)后,部分二维码无法被扫描识别,但这些二维码在iOS 17.0及更早版本中可正常识别。系统自带相机App也存在相同问题:iOS 17.0及更早版本能正常识别目标二维码,iPadOS 17.1则无法识别。

相关详情

  • iOS 17.0及更早版本:正常扫描截图
  • iPadOS 17.1:扫描异常截图
  • 示例项目代码:
func metadataOutput(_ output: AVCaptureMetadataOutput, 
                    didOutput metadataObjects: [AVMetadataObject], 
                    from connection: AVCaptureConnection) {

    guard let metadataObject = metadataObjects.first,
          let readableObject = metadataObject as? AVMetadataMachineReadableCodeObject else { 
        return 
    }

    guard let stringValue = readableObject.stringValue else {
        foundButInvalid()
        return
    }
    found(code: stringValue)
}
  • 示例二维码:含日文文本的二维码截图
  • 补充版本测试截图:iOS 16.4.1正常识别截图、iPadOS 17.1无法识别截图

相关资源可查看指定共享文件。

内容的提问来源于stack exchange,提问作者azun

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.07 05:32:04