PoomSmart / YouPiP

Enable native PiP in iOS YouTube app.
MIT License
90 stars 32 forks source link

Compiling errors (again) #59

Closed dayanch96 closed 2 years ago

dayanch96 commented 2 years ago

Hi. Getting errors like this. What am I doing wrong? :(

In file included from Tweak.x:2: In file included from /Users/dan/youpip/Header.h:4: /Users/user/youpip/AVKit-Header.h:13:30: error: unknown type name 'AVPictureInPictureControllerContentSource'; did you mean 'AVPictureInPictureController'? @property(nonatomic, retain) AVPictureInPictureControllerContentSource *contentSource API_AVAILABLE(ios(15.0)); // retain -> strong on iOS 15 ^~~~~~~~~ AVPictureInPictureController

PoomSmart commented 2 years ago

Use iOS 15 SDK

dayanch96 commented 2 years ago

Use iOS 15 SDK

Problem was on freshly installed xcode.

in xcode > preferences > locations > command line tools were not selected by default. selected it manually and it worked. thank you for your help