项目
iOS)
平台
安装pod文件(linphone-sdk 4.4.35),但是我得到了一个错误:
pod install
Installing linphone-sdk 4.4.32
[!] Error installing linphone-sdk
[!] /usr/bin/unzip /var/folders/q8/5fhs5dls3bv3nr0fwwh6gfwc0000gn/T/d20220322-3544-1lttggl/file.zip -d /var/folders/q8/5fhs5dls3bv3nr0fwwh6gfwc0000gn/T/d20220322-3544-1lttggl
Archive: /var/folders/q8/5fhs5dls3bv3nr0fwwh6gfwc0000gn/T/d20220322-3544-1lttggl/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/q8/5fhs5dls3bv3nr0fwwh6gfwc0000gn/T/d20220322-3544-1lttggl/file.zip or
/var/folders/q8/5fhs5dls3bv3nr0fwwh6gfwc0000gn/T/d20220322-3544-1lttggl/file.zip.zip, and cannot find /var/folders/q8/5fhs5dls3bv3nr0fwwh6gfwc0000gn/T/d20220322-3544-1lttggl/file.zip.ZIP, period.Podfile:
# DO NOT MODIFY -- auto-generated by Apache Cordova
source 'https://cdn.cocoapods.org/'
source 'https://github.com/CocoaPods/Specs.git'
source 'https://gitlab.linphone.org/BC/public/podspec.git'
platform :ios, '11.0'
use_frameworks!
target 'my_project' do
project 'my_project.xcodeproj'
pod 'linphone-sdk', '4.4.32'
pod 'linphone-sdk/basic-frameworks', '~> 4.4.32'
pod 'linphone-sdk/app-extension-swift', '~> 4.4.32'
end试过
谢谢!
发布于 2022-03-23 20:05:57
找到了解决办法。
在文件夹中,我们正在寻找您的版本:
~/.cocoapods/repos/linphone-bc-public-podspec/linphone-sdk/
访问带有版本的linphone网站。复制链接您的版本:https://download.linphone.org/releases/ios/
在文件"linphone-sdk/version/linphone-sdk.podspec“中搜索字符串"s.source”并替换为新链接。
https://stackoverflow.com/questions/71570684
复制相似问题