【问题标题】:Podspec Error: The `source_files` pattern did not match any filePodspec 错误:`source_files` 模式与任何文件都不匹配
【发布时间】:2019-05-10 11:35:45
【问题描述】:

我正在创建可可豆测试库。我将 podspec 文件添加为

Pod::Spec.new do |s|
  s.name         = "TestFrame"
  s.version      = "0.0.1"
  s.summary      = "A short description of TestFrame."
  s.homepage     = "https://github.com/{user}/{project}"
  s.license      = { :type => "MIT", :file => "LICENSE" }
  s.author                = { "Shubham" => "{email}" }
  s.ios.deployment_target = "10.0"
  s.swift_version         = "4.2"
  s.source       = { :git => "https://github.com/{User}/{project}.git", :tag => "#{s.version}" }
  s.source_files = "TestFrame.h", "Test.swift"
end

当我做pod lib lint --allow-warnings 验证成功但是当我做pod trunk push --allow-warnings 我得到验证错误

- ERROR | [iOS] file patterns: The `source_files` pattern did not match any file.

我为s.source_files 随机尝试了许多组合,但很多时候我都遇到了错误。

我的项目结构

--TestFrame
  --TestFrame
    --TestFrame.h
    --Test.swift
    --Info.plist

我的问题是我不知道写什么source_files

【问题讨论】:

    标签: cocoapods podspec cocoapods-1.2


    【解决方案1】:

    确保您在 https://github.com/{User}/{project}.git 存储库中有一个 0.0.1 标记。

    如果你需要做额外的诊断,运行pod spec lint --verbose --no-clean ...

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-05-14
      • 2016-10-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多