0

I've added the MBProgressHUD Cocoapod to my project. Here is my Podfile:

# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'

source 'https://github.com/CocoaPods/Specs.git'

target 'RRiOSApp' do

pod 'MBProgressHUD', '~> 0.8'

end

target 'RRiOSAppTests' do

end

I now have my code open as an Xcode workspace instead of a project. I ran pod install and get the proper console output:

Analyzing dependencies
Downloading dependencies
Installing MBProgressHUD (0.9)
Generating Pods project
Integrating client project

I can see that my MBProgressHUD.h file exists in my Pods target under Pods > MBProgressHUD > MBProgressHUD.h

The issue is that when I add #import MBProgressHUD.h to a file, I get an error at that line reading "MBProgressHUD.h file not found".

H K
  • 1,215
  • 2
  • 16
  • 29
  • 3
    Have you tried importing using the global import syntax? `#import ` – Paul.s Oct 23 '14 at 19:01
  • @Paul.s doesn't work :( – H K Oct 23 '14 at 19:49
  • Is it odd that I don't see a Pods target when I click on my 'RRiOSApp' target? also, when I select the `Pods-RRiOSApp` scheme, it builds fine but I can't run it (not sure what that means!) – H K Oct 23 '14 at 20:12

1 Answers1

4

I found the answer here, courtesy of @Ben-G: iOS - Build fails with CocoaPods cannot find header files

I had not set up the Pod config for my test target in addition to my App target.

Community
  • 1
  • 1
H K
  • 1,215
  • 2
  • 16
  • 29