I encountered the same problem as in the post YouTube-Player-iOS-Helper can't use YTPlayerView class . However, after I followed the answer in the same post https://stackoverflow.com/a/30719229 to import "YTPlayerView.h" in the bridging header file, Xcode said that "YTPlayerView.h" file not found.
Podfile that I used to install "YouTube-Player-iOS-Helper":
project 'YTSwift.xcodeproj'
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'YTSwift' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for YTSwift
pod "youtube-ios-player-helper"
end
target 'YTSwiftTests' do
inherit! :search_paths
# Pods for testing
end
target 'YTSwiftUITests' do
inherit! :search_paths
# Pods for testing
end
My "Bridging-Header.h":
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//
#import "YTPlayerView.h"
Please advise how to fix this problem, thank you! If there is any file contents necessary for your reference, please let me know. Thank you!