As the question states, I'm trying to use this module in my Swift project using the use_frameworks!
option on my Podfile
. Like so:
platform :ios, "8.0"
source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!
pod 'youtube-ios-player-helper', '~> 0.1.3'
pod 'ReactiveCocoa', '3.0-beta.6'
pod 'Moya'
pod 'Moya/Reactive'
I have checked the Pods project and it has a framework called youtube_ios_player_helper.framework
since -
is an invalid character for the name. But when I add import youtube_ios_player_helper
to my Swift file I get an error saying it does not exist.
I must say that I have some Obj-C code in my project and because of this I also have a bridging header file in the project.
Make sure you're adding the library to the correct target.
My Podfile:
ViewController.swift:
If the pure swift import
import youtube_ios_player_helper
doesn't work, adding#import "YTPlayerView.h"
to your application's bridging header should have the same effect of bridging the YouTube helper class to Swift.