吊舱安装:找不到“ Foo”的规格

时间:2019-01-01 11:57:55

标签: ios xcode cocoapods pod

我正在尝试安装创建的自定义Pod,当我运行Pod安装时,我看到以下错误。任何人都可以帮助我在堆栈溢出时尝试了类似的链接,但是没有运气。

错误:找不到“ Foo”的规范。

终端日志:

ExampleApp djrecker$ pod install
Analyzing dependencies
Pre-downloading: `Foo` from `https://github.com/deepesh259nitk/mixedFramework.git`, tag `1.0.7`
[!] Unable to find a specification for 'Foo'.

Pod文件

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

platform :ios, '11.0'

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

  # Pods for ExampleApp
  pod 'Foo', :git => 'https://github.com/deepesh259nitk/mixedFramework.git', :tag => '1.0.7'

end

更多pod命令输出:pod try,pod安装和pod列表

AUK03154:ExampleApp djrecker$ pod try Foo
Updating spec repositories
[!] An unexpected version directory `Foo.xcodeproj` was encountered for the `/Users/djrecker/.cocoapods/repos/deepesh259nitk/Foo` Pod in the `Foo` repository.
AUK03154:ExampleApp itrmg$ pod install
Analyzing dependencies
Pre-downloading: `Foo` from `https://github.com/deepesh259nitk/mixedFramework.git`, tag `1.0.7`
[!] Unable to find a specification for 'Foo'.
AUK03154:ExampleApp djrecker$ pod list | grep Foo
AUK03154:ExampleApp djrecker$ 

pod规格文件

Pod::Spec.new do |s|

  s.name         = "Foo"
  s.version      = "1.0.7"
  s.summary      = "This is a iOS framework containing both objective c and swift code"
  s.description  = "This is a iOS framework containing both objective c and swift code and shows how modules with with POD"
  s.homepage     = "https://github.com/deepesh259nitk/mixedFramework"
  s.license      = "MIT"
  s.author             = { "Deepesh" => "deepesh259nitk@gmail.com" }
  s.platform     = :ios, "11.0"
  s.source       = { :git => "https://github.com/deepesh259nitk/mixedFramework.git", :tag => "1.0.7" }
  #s.source_files  = "Foo/**/*.{h,m,swift}"
  #s.source_files  = "Foo/**/*.{modulemap}"
  #s.source_files  = "Foo/**/*.private.modulemap"
  # s.exclude_files = "Classes/Exclude"
  # s.public_header_files = "Foo/*.h"
  s.vendored_frameworks = 'Foo/Foo.framework'

end

1 个答案:

答案 0 :(得分:1)

将podspec放在github.com/deepesh259nitk/mixedFramework的顶级目录中