如何在Podspec中添加捆绑包目标 [英] How to add bundle target in podspec

查看:59
本文介绍了如何在Podspec中添加捆绑包目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为此静态库制作一个podspec。

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

在库的Xcode项目中,我为库指定了 .a 目标,并为了 .bundle 目标作为捆绑包,其中包含图书馆所需的资产。此捆绑包不是目录,而只是一个引用文件的捆绑包目标。

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.

有没有办法将 .bundle 包含在podspec中?

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

推荐答案

您要 vendored_libraries resource_bundles 。所有这些选项都在 podspec文档

这篇关于如何在Podspec中添加捆绑包目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆