可可豆:本地豆荚安装问题

时间:2019-09-16 16:40:04

标签: xcode cocoapods podspec

我正在尝试通过本地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吊舱但未在XCode项目中复制'MI_SDK_DEVELOPMENT.framework'时。所以我遇到以下错误

enter image description here

所以不知道Pod本身有问题,或者我在安装中缺少什么。任何帮助将不胜感激。谢谢

编辑: Podfile

# 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

1 个答案:

答案 0 :(得分:1)

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

  

使用HTTP下载代码的压缩文件。它支持zip,tgz,bz2,txz和tar。

这将起作用:

azurerm_availability_set.name_av_set

这不会:

body = {"inicio" : "**%s** 00:00:01" % FirstDate, "fim" : "**%s** 23:59:59" % LastDate}