How to add bundle target in podspec

一笑奈何 提交于 2019-12-06 11:03:23

问题


I would like to make a podspec for this static library.

In the library's Xcode project, I have a .a target for the library, and a .bundle target for a bundle, containing assets needed by the library. This bundle is not a directory, it's just a bundle target with references to files.

Is there a way to include that .bundle in the podspec?


回答1:


You want vendored_libraries and resource_bundles. All of these options are in the podspec documentation




回答2:


What you're looking for is

s.resources ='path/to/SomeBundle.bundle'




回答3:


If you have more than one bundle, use the array form.

s.resources =['path/to/SomeBundle.bundle', 'path/to/someBundle.bundle']


来源:https://stackoverflow.com/questions/22891897/how-to-add-bundle-target-in-podspec

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!