gilesvangruisen / Swift-YouTube-Player

Swift library for embedding and controlling YouTube videos in your iOS applications via WKWebView!
MIT License
874 stars 282 forks source link

Support for swift package manager #212

Open yzfr6 opened 3 years ago

yzfr6 commented 3 years ago

Please add a the swift package manifest to allow us to import this package via Xcode's mechanism

floriangbh commented 3 years ago

I'm also looking for this to drop Cocoapods !

vincentthe0ne commented 3 years ago

I've added SPM Support in a fork of this project -> https://github.com/worldiety/Swift-YouTube-Player. I've also created a Merge Request #215 for that issue. It's tested through the command line swift test and I've also set up a Test Project (incl. SwiftUI) to prove that It is working (https://github.com/vincentthe0ne/SPMYouTubePlayerTest).

jalian37 commented 3 years ago

I've added SPM Support in a fork of this project -> https://github.com/worldiety/Swift-YouTube-Player. I've also created a Merge Request #215 for that issue. It's tested through the command line swift test and I've also set up a Test Project (incl. SwiftUI) to prove that It is working (https://github.com/vincentthe0ne/SPMYouTubePlayerTest).

I have tried to link the fork into my Xcode 12.5.1 SPM, but the issue is the same, any suggestions please?

vincentthe0ne commented 3 years ago

Hey @jalian37 could you provide any more details? What issue occurs?

jalian37 commented 3 years ago

Hey @jalian37 could you provide any more details? What issue occurs?

I have entered this url into SPM https://github.com/worldiety/Swift-YouTube-Player.git, and received the following error

image

I am doing this for the first time, so any suggestions are welcome. Thx!

vincentthe0ne commented 3 years ago

Ok! The Fork currently only has the old tags of the base Repository. So the 0.7.2 has no SPM Support. The Idea was, that hopefully the changes from the fork will soon be merged in the next version of this Repository (e.g. 0.7.3) hence in the future the origin Repository will be used instead of my fork.

Until that is the case, you need to set the Rules for the URL to "Branch" and then "Master". For now I can say, that I am (and my company also) have no intention in working actively on the fork, it's just a solution to integrate the Swift-Youtube-Player via SPM until the owner of this Repository merges the Pull Request into this project.

Hope I could help you.

jalian37 commented 3 years ago

Ok! The Fork currently only has the old tags of the base Repository. So the 0.7.2 has no SPM Support. The Idea was, that hopefully the changes from the fork will soon be merged in the next version of this Repository (e.g. 0.7.3) hence in the future the origin Repository will be used instead of my fork.

Until that is the case, you need to set the Rules for the URL to "Branch" and then "Master". For now I can say, that I am (and my company also) have no intention in working actively on the fork, it's just a solution to integrate the Swift-Youtube-Player via SPM until the owner of this Repository merges the Pull Request into this project.

Hope I could help you.

Thank you! Problem solved :-)