-1

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.

Why is Xcode not able to find it?

enter image description here

user1406716
  • 9,565
  • 22
  • 96
  • 151
  • Did you copy or make a reference to the folder when you dragged it in? Blue folders normally means create a reference. – Paulo Apr 25 '15 at 14:45
  • I copied the folders should I only make a reference? – user1406716 Apr 25 '15 at 15:18
  • 1
    No you should copy the entire group. But they should be yellow, not blue. I had a similar problem. Try removing the folder and trash it. Then empty trash. Then drag it in and check that it is grouped not referenced. Other than that, you could try and take all the files out of their individual folders to make it easier for the compiler to find. Let me know if it doesn't work and I'll have another look at what I did. – Paulo Apr 25 '15 at 15:21

1 Answers1

2

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

EDIT:

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) ) Drag-n-drop folder into xcode

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

autocomplete

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

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.

Hope this helps!

Micaiah Wallace
  • 1,101
  • 10
  • 17