Xcode Error 8.2.1 - There Is No YouTubePlayer

I am using https://github.com/gilesvangruisen/Swift-YouTube-Player

At first I tried to import it manually from the outside, including dropping, copyng, embed framewordks, embedded binaries, related frameworks, but this was unsuccessful with the error message. No such YouTubePlayer module

Then I used cocoapods. Install it and run from .xcworkspace. Then try to run it and again the error message There is no such module YoutubePlayer

These are the directories of the list tree after installing pod

errors

This may be a solution, but I donโ€™t know where the repo is and how to do the described action. https://github.com/gilesvangruisen/Swift-YouTube-Player/issues/42

+5
source share
1 answer

The reason his refusal to use cocoapod is because the written pod is in the old quick version. So, unless we compile POD successfully, we cannot import this. You can change the old fast code to a new one using:

Xcode-> Edit-> Convert-> To Current Swift Syntax

You can also use the latest version and create a framework from the repo you mentioned: https://github.com/gilesvangruisen/Swift-YouTube-Player

I downloaded the latest version and created the youTubePlayer structure and linked it to the sample application and was able to import it.

Please check this link for an example application that also has a YouTubePlayer environment that you can use in your own project.

+2
source

Source: https://habr.com/ru/post/1264837/


All Articles