【问题标题】:Cocoapods error installing libopencv-contribCocoapods 安装 libopencv-contrib 时出错
【发布时间】:2020-12-09 18:17:07
【问题描述】:

我正在使用这个 opencv3 库来响应本机,但是当我尝试使用 pod install 安装 IOS 依赖项时,我收到此错误,有人可以帮助我吗?

    [!] Error installing libopencv-contrib
    [!] /usr/bin/unzip /var/folders/hj/5y2w85bn64n0t7mmzcc9rtbc0000gn/T/d20200815-25128-1yye817/file.zip -d /var/folders/hj/5y2w85bn64n0t7mmzcc9rtbc0000gn/T/d20200815-25128-1yye817
    
    Archive:  /var/folders/hj/5y2w85bn64n0t7mmzcc9rtbc0000gn/T/d20200815-25128-1yye817/file.zip
      End-of-central-directory signature not found.  Either this file is not
      a zipfile, or it constitutes one disk of a multi-part archive.  In the
      latter case the central directory and zipfile comment will be found on
      the last disk(s) of this archive.
    unzip:  cannot find zipfile directory in one of /var/folders/hj/5y2w85bn64n0t7mmzcc9rtbc0000gn/T/d20200815-25128-1yye817/file.zip or
            /var/folders/hj/5y2w85bn64n0t7mmzcc9rtbc0000gn/T/d20200815-25128-1yye817/file.zip.zip, and cannot find /var/folders/hj/5y2w85bn64n0t7mmzcc9rtbc0000gn/T/d20200815-25128-1yye817/file.zip.ZIP, period.

【问题讨论】:

    标签: ios react-native opencv cocoapods opencv3.0


    【解决方案1】:

    以下愚蠢的修复为我解决了这个问题:

    • 运行pod spec edit libopencv-contrib
    • 找到source url(一个保管箱链接)
    • ?dl=0 替换为?dl=1
    • 保存文件&&运行pod install 现在安装应该完成且没有错误。

    【讨论】:

      猜你喜欢
      • 2013-11-13
      • 2016-01-07
      • 2014-06-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多