Jos*_* H. 6 xcode pod cocoapods podspec
我正在尝试创建CocoaPod,但是当我尝试验证Pod规格文件时,请向我显示此错误。
- ERROR | [iOS] unknown: Encountered an unknown error (Unable to find other source ref for /Users/jhgonzalez/Desktop/MyApp/Me/cocoaPod/JCore-ui/LibraryComponents/Resources/JCore-ui.xcassets/Contents.json for target JCore-ui.) during validation.
Run Code Online (Sandbox Code Playgroud)
这是我的podspec文件。
Pod::Spec.new do |s|
s.name = 'JCore'
s.version = '0.2.3'
s.summary = 'This is an UI Lib for iOS'
s.platform = :ios, "10.0"
s.description = <<-DESC
This is an UI Lib to iOS. This description is too large than summary
DESC
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Josue Hernandez' => 'example@gmail.com' }
s.source = { :git => 'https://github.com/example/JCore.git', :tag => s.version.to_s }
s.source_files = 'LibraryComponents/**/*'
s.resource_bundles = {
'JCore' => ['LibraryComponents/Resources/*.xcassets','LibraryComponents/Resources/**/*.json']
}
Run Code Online (Sandbox Code Playgroud)
任何的想法。
小智 0
s.source_files = 'LibraryComponents/**/*' ->
s.source_files = 'LibraryComponents/**/*.{swift}'
Run Code Online (Sandbox Code Playgroud)
看起来“*”覆盖了所有文件。
希望可以帮助你。