venmo / venmo-ios-sdk

Make and accept payments in your iOS app via Venmo
MIT License
178 stars 57 forks source link

VENUser.h file not found? #92

Closed morganwildermuth closed 9 years ago

morganwildermuth commented 9 years ago

I'm trying to integrate this in a Swift application. I'm using Xcode 6.4 and CocoaPods 0.38.2.

My podfile looks like this:

platform :ios, '8.0'
use_frameworks!

target 'my_app_name' do
    pod 'Venmo-iOS-SDK', '~>1.3'
end

With no import in my bridge header, the app runs. With #import <Venmo_iOS_SDK/Venmo.h> however, I get the following error:

..Pods/Venmo-iOS-SDK/venmo-sdk/Categories/VENUser+VenmoSDK.h:1:9: 'VENUser.h' file not found
.../my_app_name-Bridging-Header.h:6:9: Could not build module 'Venmo_iOS_SDK' 
Failed to import bridging header '../my_app_name/my_app_name-Bridging-Header.h'

I tried adding another pod just to make sure it was an issue specifically with my integration with venmo-ios-sdk and ended up adding #import <VENCore/VENcore.h> with zero problems. I'm pretty new to iOS, so I don't really know if I'm missing something extra obvious which is why I included so many details.

Any ideas?

morganwildermuth commented 9 years ago

Actually, this is the relevant line I guess:


#import "VENUser.h"

@interface VENUser (VenmoSDK) <NSCoding>

@end

in File VENUser+VenmoSDK.h as referenced before

morganwildermuth commented 9 years ago

Okaay, fixed that issue myself by just adding VENCore before that line.

import "VENCore/VENUser.h"