Cocoapods : Issue with pod which contains resource folder Assets.xcassets

前端 未结 4 2001
囚心锁ツ
囚心锁ツ 2021-01-13 05:58

I am creating my own cocoapods. I am getting an error as shown in screenshot. I think , there is some issue with Assets.xcassets folder linking. In case, there is no image i

4条回答
  •  -上瘾入骨i
    2021-01-13 06:19

    You can use following YourPod.podspec file making minor changes

    Pod::Spec.new do |s|
        s.name             = 'YourPod'
        s.version          = '0.1.0'
        s.summary          = 'Pod summary here'
        s.description      = 'Use description here and it must be larger than summary'
        s.swift_version = '4.2'
        s.homepage         = 'https://github.com/githubusername/YourPod'
        s.license          = { :type => 'MIT', :file => 'LICENSE' }
        s.author           = { 'Vipin' => 'vipintnk11@gmail.com' }
        s.source           = { :git => 'https://github.com/githubusername/YourPod.git', :tag => s.version.to_s }
        s.ios.deployment_target = '11.0'
        s.source_files = 'ECGame/**/*.{swift, plist}'
        s.resources = 'ECGame/**/*.{png,jpeg,jpg,storyboard,xib,xcassets,json}'
        s.framework = "UIKit"
        s.dependency 'MBProgressHUD'
        s.dependency 'Alamofire'
    end
    

提交回复
热议问题