سؤال

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?

هل كانت مفيدة؟

المحلول 2

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

نصائح أخرى

What you're looking for is

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

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

s.resources =['path/to/SomeBundle.bundle', 'path/to/someBundle.bundle']
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top