umali
umali

Reputation: 195

Cocoa Pods: Local Pod install issue

I am trying to install a library through local podspec. This is how my podspec looks like

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' => '[email protected]' }
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

when I run the pod install pods installed successfully but it does not copy the 'MI_SDK_DEVELOPMENT.framework' in the XCode project. So I am having the following error

enter image description here

So don't know is there something wrong with the Pod itself or I am missing something in the installation. Any help will be highly appreciated. Thanks

EDIT: 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

Upvotes: 2

Views: 2537

Answers (1)

alxlives
alxlives

Reputation: 5212

By the Cocoapods Documentation, it seems that .zip files are only unarchivable via http resources:

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

So this would work:

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

This would not:

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

Upvotes: 1

Related Questions