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

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

问题描述

我试图在 Xcode 中创建一个框架,并成功地完成了这项工作,但事实证明, Xcode 复制标题构建阶段。我已经尝试添加文件作为文件夹引用而不是组,然后它甚至不会将头文件识别为头文件!

所以,怎么可以我告诉 Xcode 在将头文件复制到我的.framework-bundle时保留目录结构?

解决方案

在构建阶段UI中使用复制文件而不是复制标题



创建单独的复制文件(编辑器 - >添加生成阶段)为每个需要的输出文件夹。


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!

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

解决方案

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天全站免登陆