I have made a custom Cocoa control and want to release it and write a podspec.
My control contains one image. How can I package this image so that when others install my pod, my code can find the image?
At the moment the image is included in the example applications Images.xcassets file and loaded using [NSImage imageNamed:...]
. However, when others come to install my pod they won't want the example project: they will just want the classes and the image.
You can either include the files individually or with an xcassets
file. Either way on the CocoaPods side you just need to include them in your spec as resources
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With