Youtube Video Player - Package can't find XCDYouTubeKit library

Hi everyone!

I am trying to build iOS version using Ionic Package. My app uses Youtube Video Player native plugin. The build process fails with the following error:

library not found for -lXCDYouTubeKit

As far as I understand, the problem is the plugin uses a third party library XCDYouTubeKit that is supposed to be installed using CocoaPods dependency manager. When doing a local build for the emulator I could get the library manually using “pod install”, but how this could be done during the Ionic Package build?

Did anybody stumbled upon this problem before? Thanks a lot in advance.

A couple of hours of googling and the solution is found here!

I think it should be mentioned in the Ionic documentation here.

Thanks everyone!

1 Like