ios - 无法使用远程框架创建 Cocoapod 依赖项
问题描述
我想使用位于远程位置(例如 git 和 drop box)的现有框架(我想通过 cocoapods 在内部共享的内部使用的编译框架)创建一个 Cocoapod 依赖项。
我正在关注教程
下面是 podspec 文件的代码
Pod::Spec.new do |s|
s.name = 'SDK101'
s.version = '0.1.0'
s.summary = 'A Awesomeness of SDK101.'
s.description = <<-DESC
Add long description of the pod here.Awesomeness!!!
DESC
s.homepage = 'https://github.com/'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Sourabh' => 'sourabh.gajbhiye@gmail.com' }
s.source = { :http => 'https://app.box.com/s/ipwollwlh675fkg3oy87rr7nneafafv0', :type => 'zip' }
s.ios.deployment_target = '12.0'
s.platform = :ios
s.ios.vendored_frameworks = 'SDK101.framework'
s.exclude_files = "Classes/Exclude"
end
对于这个文件,当我在终端中执行以下命令以验证 pod 时,我收到如下所示的错误
pod spec lint --verbose
[!] Error installing SDK101
-> SDK101 (0.1.0)
- ERROR | [iOS] unknown: Encountered an unknown error ([!] /usr/bin/unzip /var/folders/gq/xrq80ysd50nd5frn2zhb89dc0000gn/T/d20210422-75411-1bv4xo/file.zip -d /var/folders/gq/xrq80ysd50nd5frn2zhb89dc0000gn/T/d20210422-75411-1bv4xo
Archive: /var/folders/gq/xrq80ysd50nd5frn2zhb89dc0000gn/T/d20210422-75411-1bv4xo/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/gq/xrq80ysd50nd5frn2zhb89dc0000gn/T/d20210422-75411-1bv4xo/file.zip or
/var/folders/gq/xrq80ysd50nd5frn2zhb89dc0000gn/T/d20210422-75411-1bv4xo/file.zip.zip, and cannot find /var/folders/gq/xrq80ysd50nd5frn2zhb89dc0000gn/T/d20210422-75411-1bv4xo/file.zip.ZIP, period.
Analyzed 1 podspec.
[!] The spec did not pass validation, due to 1 error.
在此之后,我跟随Cocoapods 错误安装 libopencv-contrib但它没有帮助我。
请帮助我我做错了什么?
解决方案
推荐阅读
- android - grantUriPermissions() 上的 SecurityException
- javascript - HTML5 音频 - 获取充满零的频率数组
- c - 如何将gets() 用于以下代码?
- angular - 角度 - 在组件中使用有条件不同布局的最佳实践
- c - 宏在 C 语言中给出了错误的值
- python - 错误:文件不以 RIFF id 开头
- r - combine_vars(vars, ind_list) 中的错误:R 中的位置必须介于 0 和 n 之间
- android - Xamarin Android GridLayout - 行跨度适用于设计器,但不适用于模拟器
- vba - 如果特定列具有数值,则复制数组
- vb.net - 如何使用连接密码使用 Vb.net 打开 Microsoft Access 数据库