0xced / XCDYouTubeKit

YouTube video player for iOS, tvOS and macOS
MIT License
2.92k stars 626 forks source link

Add missing reference for UIKit in ios build target #486

Closed alekseevpg closed 1 year ago

alekseevpg commented 4 years ago

At the moment if we're building this framework with CocoaPods and use_frameworks! and use_modular_headers! enabled, there is a missing reference to UIKit framework

At XCDYouTubeVideoPlayerViewController.m line 76 we're using UIDevice reference.

If we're manually add this framework at project Link With Binary build phase everything works fine

if ([[[UIDevice currentDevice] systemVersion] integerValue] >= 8)

this issue will arise if CLANG_MODULES_AUTOLINK set to 'NO'