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

前端 未结 4 1999
囚心锁ツ
囚心锁ツ 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条回答
  •  礼貌的吻别
    2021-01-13 06:31

    Either you do:

    s.subspec 'Resources' do |resources|
        resources.resource_bundle = {'ECGame' => ['Resources/**/*.{json,png}']}
    end
    

    Or you do:

    s.resources = "ECGame/Assets/*.xcassets"
    

提交回复
热议问题