【发布时间】: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