BDBOAuth1Manager icon indicating copy to clipboard operation
BDBOAuth1Manager copied to clipboard

Include of non-modular header inside framework module

Open chiswicked opened this issue 9 years ago • 1 comments

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

chiswicked avatar Dec 26 '15 01:12 chiswicked

+1 from me

lucasleongit avatar Mar 04 '17 16:03 lucasleongit