Load image from CocoaPods resource bundle

后端 未结 7 2093
独厮守ぢ
独厮守ぢ 2021-02-02 11:48

I am creating a private library that includes resources that are referenced by components in the library. The library is shared with apps using CocoaPods. In the .podspec for

7条回答
  •  一生所求
    2021-02-02 12:20

    The obvious solution that wasn’t listed anywhere is using the Cocoapods generated bundle (which the folder actually doesn’t exist) as a NSBundle:

    have a try: http://blog.flaviocaetano.com/post/cocoapods-and-resource_bundles/

    it worked for me!!

提交回复
热议问题