I am developing an ios application using swift. We downloaded the work of the Google personnel frame from the link below. https://developers.google.com/cast/docs/downloads Added this frame work in the application and imported as follows: import GoogleCast But I get the error message "There is no such Google Cast module"
Something works for me in Swift. I did not need to import anything.
You followed the instructions from https://developers.google.com/cast/docs/ios_sender
Also configure the Objective-C bridge title.https://developer.apple.com/library/ios/documentation/swift/conceptual/BuildingCocoaApps/MixandMatch.html
I posted the GoogleCast.h file GoogleCast.h
GoogleCast.h
I checked this sample code:
class ViewController: UIViewController, GCKDeviceScannerListener { var scanner = GCKDeviceScanner()!; func deviceDidComeOnline(device: GCKDevice!) { println("device found - \(device.friendlyName)"); } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. //scanner = GCKDeviceScanner(); println(scanner) scanner.addListener(self) scanner.startScan() } }
I run this on Iphone 5s from Xcode and it found my ChromeCast device:
device found - AW
Here's how I worked on my Swift project (after the Google Cast for iOS tutorial):
-ObjC -lc++
I added the following library libraries (linked, not embedded):
Still in the libraries of related libraries, I added GoogleCast.framework click + → Add another ... → GoogleCast.framework
I have not added any Objective-C bridge headers and it works great!
Source: https://habr.com/ru/post/1206317/More articles:'&&' vs. '&' with the command 'test' in Bash - linuxAssign a static leaf field with the same name - javaAndroid: How to detect an application killed from the list of recent applications? - androidHow to use the UTL_COMPRESS package to compress a txt file and create a gz file in unix using oracle 11 g? - oracle11gautomatically hide flash messages on rails - jqueryosx - `go get` fails with resolved failure in specific go - go packagesMany “right margins” or manuals in PHPStorm - ideHow can I control where `go get` puts things? - goHow are URLs written once? - javaStuck with JAXB - XML exception without marshal - javaAll Articles