JSQMessages.h 中的错误 [英] Error in JSQMessages.h

查看:39
本文介绍了JSQMessages.h 中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 JSQMessageViewController 添加到我的项目中.我转到桥接头文件并添加 #import "JSQMessagesViewController/JSQMessages.h" 并且在 JSQMessages.h 中出现以下错误.

I added JSQMessageViewController to my project. I went to the bridging header file and added #import "JSQMessagesViewController/JSQMessages.h" and I get the following error in JSQMessages.h.

为什么 Xcode 找不到它?

Why is Xcode not able to find it?

推荐答案

这个答案可能更基于意见,但我会删除你的 jsqmessagesviewcontroller 文件夹,然后当你将它拖到你的项目中时,只需选择创建组而不是文件夹.那你就不用担心子目录问题了

This answer might be more opinion based, but I would delete your jsqmessagesviewcontroller folder, then when you drag it into your project just choose create groups instead of folders. Then you won't have to worry about subdirectory issues

确保将它拖入 xcode 时看起来像这样(如果需要,复制项目,创建组并添加到目标项目名称"(不是测试目标))

Make sure it looks like this when you drag it into xcode (Copy items if needed, create groups and add to targets 'name of project' (not the Tests target) )

然后你应该能够在你输入你的包含时在自动完成时看到这个:

Then you should be able to see this when in autocompletion when your typing your includes:

你还应该在编译源中看到 JSQMessagesViewController 文件,像这样(我突出显示了一些给你看):

And you should also see the JSQMessagesViewController files in compile sources like so (I highlighted some to show you):

如果这些文件不在那里,请单击编译源底部的加号并选择 jsqmessagesviewcontroller 子目录中的所有文件,然后单击添加.

If those files aren't in there, click the plus at the bottom of compile sources and select all the files in the jsqmessagesviewcontroller subdirectory and click add.

希望这有帮助!

这篇关于JSQMessages.h 中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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