在 xcode 中创建框架时保持目录结构 [英] Keeping directory structure when creating frameworks in xcode

查看:29
本文介绍了在 xcode 中创建框架时保持目录结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Xcode 中创建一个框架并且已经成功地做到了,但事实证明,Xcode复制标题构建阶段.我尝试将文件添加为文件夹引用而不是组,但它甚至不会将头文件识别为头文件!

I'm trying to create a framework in Xcode and have successfully done so, but as it turns out, Xcode flattens the directory structure of when copying headers in the Copy Headers build phase. I've tried adding the files as Folder References instead of the groups, but then it won't even recognize the header-files as header files!

那么,在将头文件复制到我的 .framework-bundle 时,如何告诉 Xcode 保留目录结构?

So, how can I tell Xcode to keep the directory structure when copying the header files to my .framework-bundle?

推荐答案

在 Build Phases UI 中使用 Copy Files 而不是 Copy Headers.

Use Copy Files instead of Copy Headers in the Build Phases UI.

为所需的每个输出文件夹创建一个单独的复制文件(编辑器 -> 添加构建阶段).

Create a separate Copy Files (Editor -> Add Build Phase) for each output folder needed.

这篇关于在 xcode 中创建框架时保持目录结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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