-1

I'm using cocoapod, I pretty much followed this answer: How to install cocoa pods? everything went smoothly but after adding the pods to the project Xcode doesn't let me import them.

The pods I think are correctly installed as you can see from the image of the terminal:

pod installed

but then more often than not I can't import most of them because it's like they can't be read by Xcode:

Like it doesn't even exist

What can I do?

Community
  • 1
  • 1
Ben
  • 35
  • 6
  • your project is on swift and the pod is on ObjectiveC... are you adding the library signature on you project bridging header? – Ostanik Mar 10 '17 at 20:28
  • You do have to build the Pods project successfully for Xcode to recognize the pod framework name. If you comment out the import from this file and then build the whole workspace, do you get any compile errors? – Dave Weston Mar 10 '17 at 20:35
  • 1
    Also, AFNetworking 0.9.1 is REALLY old, I would investigate how much work it would be to upgrade that or switch to using `NSURLSession` directly. – Dave Weston Mar 10 '17 at 20:36
  • Shouldn't you be using `UIView+draggable` instead of `UIView_draggable` – Caleb Kleveter Mar 10 '17 at 23:39

1 Answers1

2

I solved it in the end: the error was just a bug, I just needed to press cmd+B to make XCode rebuild the project and the error went away.

Ben
  • 35
  • 6