如何将资源添加到 .bundle/wrapper.plug-in 中?

发布于 2024-10-02 11:19:12 字数 587 浏览 0 评论 0原文

抱歉问了这个 n00b 问题,但我已经没有更多的头发可扯了。 =(

我正在使用 XCode 构建我的 iOS 项目,并引用另一个 XCode 项目,为了完成这项工作,我还需要引用捆绑文件。构建项目和捆绑包的开发人员想要组织事物,因此将所有 ;

现在我的问题是:

如何将文件/资源​​添加到 .bundle 文件中? -> .by/7p3Y" rel="nofollow">http://grab.by/7p3Y

捆绑包的文件类型为:wrapper.plug-in -> http://grab.by/7p3W

我通过右键单击并选择“添加现有文件”添加的文件最终都会出现在项目中而不是捆绑资源中。

任何 您的帮助!还请指出这是常见的还是自定义的解决方案?

非常感谢 Abeansits

更新:

像往常一样,问题出在我身上,我将其归咎于低糖水平。 =( 您所需要做的就是手动将文件添加到捆绑包中,它将显示在 XCode 中。

Sorry for the n00b question, but I have no more hair to pull. =(

I'm building my iOS project using XCode and have a reference to another XCode project, to make this work I also need to reference the bundle-file. The developer who built the project and bundle wanted to organize things and thus put all the images inside of this .bundle-file.

Now my question is this:

How do you add a file/resource to a .bundle file? -> http://grab.by/7p3Y

The file type of the bundle is: wrapper.plug-in -> http://grab.by/7p3W

The files I add by right-clicking and selecting add existing files all end up in the project not in the bundle resource.

Any kind of help will be most appreciated! Also an indication if this is common or a custom solution?

Best regards
Abeansits

Update:

As usual the problem was me, I'm blaming this on low sugar levels. =(
All you need to do is add a file to the bundle manually and it will show up in XCode.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三五鸿雁 2024-10-09 11:19:12

正如我在问题中所写,解决方案非常简单。只需将项目内所需的文件添加到捆绑包中即可。由于捆绑包实际上是一个文件夹,因此您可以右键单击它并选择显示内容。您稍后添加到该文件夹​​的任何内容都将显示在项目中。

我想这让我很困惑,因为通常当您向项目添加资源时,您需要通过 XCode 来完成此操作。

As I wrote in the question, the solution is really simple. Just add the files you need inside the project to the bundle. Since the bundle is actually a folder, you can right click it an select show content. Anything you later add to the folder will show up in the project.

I guess this confused me since usually when you add resources to your project you need to do this through XCode.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文