bdbergeron / BDBOAuth1Manager

OAuth 1.0a library for AFNetworking 2.x
MIT License
100 stars 35 forks source link

Include of non-modular header inside framework module #44

Open chiswicked opened 8 years ago

chiswicked commented 8 years ago

Hi Brad

I have built a Cocoa Touch Framework written in Swift (using Xcode 7.2) utilising BDBOAuth1Manager 2.0.0 with no problem.

However, when I 'pod install' my aforementioned framework into a Swift standalone app (and as a result BDBOAuth1Manager gets installed as a dependency) I get the following errors when I try to build:

/Path/To/StandaloneApp/Pods/BDBOAuth1Manager/BDBOAuth1Manager/BDBOAuth1RequestSerializer.h:23:9: Include of non-modular header inside framework module 'BDBOAuth1Manager.BDBOAuth1RequestSerializer'

screen shot 2015-12-26 at 01 17 59

/Path/To/StandaloneApp/Pods/BDBOAuth1Manager/BDBOAuth1Manager/BDBOAuth1SessionManager.h:23:9: Include of non-modular header inside framework module 'BDBOAuth1Manager.BDBOAuth1SessionManager'

screen shot 2015-12-26 at 01 18 18

I've tried setting CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = 'YES', but didn't seem to help. I guess it wouldn't be an elegant solution anyway.

I've read through quite a few threads e.g 1 2 but couldn't really find a proper solution to my problem.

However, I came across this issue and the fix. I'm not sure if it's related but seems very much the same problem I'm facing.

Unfortunately, I know practically nothing about Obj C so can't really debug myself, but was wondering if you could look into this and perhaps give me some pointers if I could resolve this issue myself or does this require the same fix as the one for AFNetworking?

Or am I chasing a red herring?

Thanks

lucasleongit commented 7 years ago

+1 from me