Xcode将不必要的文件复制到目标中(Xcode copying unnecessary files into target)

编程入门 行业动态 更新时间:2024-10-25 16:28:43
Xcode将不必要的文件复制到目标中(Xcode copying unnecessary files into target)

在我的Xcode项目中,我将它设置为在“复制包资源”步骤中复制我需要的所有文件,并且它不链接到任何额外的库,但是当我编译项目时,它复制了许多文件。甚至在项目的文件引用中(与该版本的应用程序无关的一些.dll文件)。

这些文件可能在某一点意外地被添加到“复制包资源”步骤中,但之后被删除了。 如何找出这些文件仍然被复制的原因以及如何防止它?

In my Xcode project, I have it set to copy all the files I need in the "Copy bundle resources" step and it doesn't link to any extra libraries, yet when I compile the project it copies a number of files that aren't even in the project's file references (a number of .dll files that have nothing to do with this version of the app).

The files may have accidentally been added to the "copy bundle resources" step at one point but were since removed. How can I find out why are these files still being copied and how can I prevent it?

最满意答案

事实证明,在删除这些文件之前,文件是从构建中遗留下来的。 从products文件夹中删除应用程序摆脱了额外的文件。

Turns out the files were left over from a build before those files were removed. Trashing the app from the products folder got rid of the extra files.

更多推荐

本文发布于:2023-04-28 01:56:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1329827.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:将不   目标   文件   Xcode   target

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!