I am trying to implement Chromecast feature in my iOS Swift app, which also has Facebook SDK used. For Facebook SDK I used bridging header. I did following things:
- I've downloaded Googlecast iOS Sender SDK and I pasted it inside my project's root folder
- I've set the Other Linker Flags in Build Settings to: -ObjC -lc++
- I've added the following framework libraries (linked, not embedded): Accelerate.framework AudioToolbox.framework AVFoundation.framework CoreBluetooth.framework CoreGraphics.framework CoreText.framework Foundation.framework MediaAccessibility.framework MediaPlayer.framework MediaToolbox.framework QuartzCore.framework SystemConfiguration.framework UIKit.framework
- Still under Linked framework libraries I've added GoogleCast.framework clicking on + -> Add Other... ->GoogleCast.framework
- I've added in the Build Phases of target a new entry in the Copy Bundle Resources section. I selected Add Other GoogleCast.framework -> Resources -> GoogleCastResources.bundle.
Now I am not able to compile my project. It gives error. If I try to import Google cast header file in bridging header, it throws error Google/GoogleCast.h file not found
.