创建框架时在XCode 8中找不到filename.h文件错误 [英] filename.h file not found error in XCode 8 while creating framework

查看:72
本文介绍了创建框架时在XCode 8中找不到filename.h文件错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下步骤创建框架 https: //www.raywenderlich.com/65964/create-a-framework-for-ios

I'm trying to create a framework using this steps https://www.raywenderlich.com/65964/create-a-framework-for-ios

我已经将框架文件导入到项目中,并且能够为框架文件创建对象并访问方法.但是,当我构建项目时,它告诉找不到该文件.

I've imported the framework file into project and I can able to create object for the framework file and access the methods. But when I build the project it is telling that file is not found.

推荐答案

确保您的.h文件位于复制标题" 的公共部分,如快照中所示

Make sure your .h file is in public section of 'Copy Headers' as shown in snap shot

  • 只需将您框架的捆绑包添加到嵌入式库中,以
  • Just add you framework's bundle to embedded libraries as

这篇关于创建框架时在XCode 8中找不到filename.h文件错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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