Xcode 7无法从框架中找到头文件 [英] Xcode 7 can't find header files from framework

查看:219
本文介绍了Xcode 7无法从框架中找到头文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将PassSlot添加到我的项目中,但它说它无法找到.h文件。我从这里正确地关注了所有内容: https://github.com/passslot/passslot-ios-sdk

I'm trying to add PassSlot into my project, but it says it can't find the .h file. I'm following everything correctly from here: https://github.com/passslot/passslot-ios-sdk

这是Xcode 7的问题吗?它工作正常,现在我在Xcode 7中打开了项目,它给了我这个问题。我在Xcode 6上重新打开它,它也开始显示问题。

Is this an Xcode 7 problem? It was working fine and now that I opened the project in Xcode 7, it is giving me this problem. I reopened it on Xcode 6 and it starts showing the problem as well.

推荐答案

我认为Dinesy是对的。这解决了我的问题。

I think Dinesy is right. This solves the problem for me.


我注意到当你导入第三方时,Xcode7不会自动填写所需的
框架搜索路径(我相信
Xcode6确实这样做了)。通过转到项目 - >
构建设置 - >搜索路径 - >框架搜索路径,检查您的是否为空。无论您的Frameworks在哪里,都可以在
中填写。如果它在你的项目下你可以
使用$(PROJECT_DIR)

I've noticed that Xcode7 doesn't automatically fill in the required Framework search paths when you import a 3rd party one (I believe Xcode6 did do this). Check if yours are empty by going to Project -> Build Settings -> Search Paths -> Framework Search Paths. Fill it in with wherever your Frameworks live. If it's under your project you can use $(PROJECT_DIR)

这篇关于Xcode 7无法从框架中找到头文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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