Cocoa Pods:本地 Pod 安装问题

Cocoa Pods: Local Pod install issue

我正在尝试通过本地 podspec 安装库。这就是我的 podspec 的样子

Pod::Spec.new do |s|
s.name = 'MI_SDK_DEVELOPMENT'
s.version = '1.0.0'
s.license = { :type => 'Unspecified' }
s.homepage = 'https://www.modirum.com'
s.authors = { 'Modirum Ou' => 'info@modirum.com' }
s.summary = 'Modirum 3DS SDK iOS framework (Development)'
s.platform = :ios
s.source = { :path => './LocalPods/MI_SDK_DEVELOPMENT.framework.zip' }
s.ios.deployment_target = '8.0'
s.ios.vendored_frameworks = 'MI_SDK_DEVELOPMENT.framework'
end

当我 运行 pod install pods 安装成功但它没有复制 XCode 项目中的 'MI_SDK_DEVELOPMENT.framework'。所以我有以下错误

所以不知道是 Pod 本身有问题还是我在安装中遗漏了什么。任何帮助将不胜感激。谢谢

编辑: 播客文件

# Uncomment the next line to define a global platform for your project

platform :ios, '8.0'

target 'ModirumSDKExample' do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for ModirumSDKExample
  pod 'MI_SDK_DEVELOPMENT', :path => './LocalPods/MI_SDK_DEVELOPMENT.podspec'

end

根据 Cocoapods Documentation,.zip 文件似乎只能通过 http 资源无法存档:

Using HTTP to download a compressed file of the code. It supports zip, tgz, bz2, txz and tar.

所以这会起作用:

s.source = { :http => 'https://example.com/MI_SDK_DEVELOPMENT.framework.zip' }

这不会:

s.source = { :path => './LocalPods/MI_SDK_DEVELOPMENT.framework.zip' }