venmo / venmo-ios-sdk

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

Could not build Objective-C module 'Venmo-iOS-SDK' #95

Open lukenewman opened 9 years ago

lukenewman commented 9 years ago

I'm using Swift for my project, and I get the above error on the import statement in AppDelegate. Xcode recognizes the module name

screen shot 2015-09-29 at 11 45 49 am

but gives the error once it's actually there.

screen shot 2015-09-29 at 11 46 01 am

I have the correct line in my Podfile and the use_frameworks! flag. I've linked the CMDQueryStringSerialization, SSKeychain, VENCore, and Venmo-iOS-SDK frameworks as well. I am not using any sort of prefix header.

Any ideas?

lukenewman commented 9 years ago

I also had the error Could not find file "VENUser.h" at the import statement in VENUser+VenmoSDK.h. I changed it to #import "VENCore/VENUser.h" and both errors were resolved. Maybe this is something that should be changed in the source?

ammoqq commented 9 years ago

Could you post your Podfile and perhaps Bridging header if you have any(Yeah I did try without the bridging header but it didnt work )?

How are you importing the SSKeychain, I have it only downloaded with pods but didnt do anything with them I have same issue but your solution doesnt help unfortunately :(

joeycarmello commented 9 years ago

Same issue here.

hyperspacemark commented 9 years ago

Thanks for reporting this issue. This was indeed a case of bad header importing on our end that worked when the SDK was compiled as a static library via Cocoapods. Unfortunately this falls down when a dynamic library is created. This will be fixed in an upcoming release.

shadibarhoumi commented 8 years ago

has this been fixed?

chtrinh commented 8 years ago

Any traction on this or a possible work around to get this pod working?

bsmith11 commented 8 years ago

@hyperspacemark Any update on this issue? Still getting it and @lukenewman's fix via #import "VENCore/VENUser.h" works.