phawind111 / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

Module support for iOS SDK #687

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm encountering this error when I attempt to add the GoogleCast SDK to a Swift 
library in Xcode 7.1:
Include of non-modular header inside framework module 'NAME'

I believe this could be resolved by rebuilding the SDK with Build Settings > 
Packaging > Defines Module set to YES.  My attempts to find a workaround for 
this issue have failed.

Original issue reported on code.google.com by mhmi...@gmail.com on 11 Nov 2015 at 8:45

GoogleCodeExporter commented 8 years ago
This is a known issue in CocoaPods: 
https://github.com/CocoaPods/CocoaPods/issues/4420.  

Original comment by na...@google.com on 12 Nov 2015 at 8:16

GoogleCodeExporter commented 8 years ago
I encounter the issue when downloading the SDK library directly.  The problem 
is independent of CocoaPods even though the error is the same.  I've attempted 
to manually add a .modulemap file to the built SDK but it doesn't seem to be 
recognized.

Original comment by mhmi...@gmail.com on 12 Nov 2015 at 8:39

GoogleCodeExporter commented 8 years ago
Please contact Apple Support as this issue seems to be specific to Swift 
Compiler. Alternatively, you can check StackOverflow for some already 
established workaround for this issue. 

Original comment by na...@google.com on 13 Nov 2015 at 12:30

GoogleCodeExporter commented 8 years ago
I fixed this error by added a file called module.modulemap at 
GoogleCast.framework/Modules with the contents:

framework module GoogleCast {
  umbrella header "GoogleCast.h"

  export *
  module * { export * }
}

Thanks for your help.

Original comment by mhmi...@gmail.com on 18 Nov 2015 at 12:51