Skip to content

chotaling1/YoutubeiOSPlayerHelperNuget

Repository files navigation

YoutubeiOSPlayerHelperNuget

Currently uses version 1.0.4 release of the youtube-ios-player-helper

https://github.com/youtube/youtube-ios-player-helper

Updating bound youtube-ios-player-helper framework

  1. Clone the youtube-ios-player-helper repo (or download its source)
  2. Archive framework for devices
xcodebuild archive \
    -project youtube-ios-player-helper.xcodeproj \
    -scheme youtube-ios-player-helper \
    -configuration "Release" \
    -sdk "iphoneos" -arch "arm64" \
    -archivePath "build/archives/youtube-ios-player-helper-iphoneos-arm64" \
    BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
    SKIP_INSTALL=NO
  1. Archive framework for simulator
xcodebuild archive \
    -project youtube-ios-player-helper.xcodeproj \
    -scheme youtube-ios-player-helper \
    -configuration "Release" \
    -sdk "iphonesimulator" -arch "x86_64" \
    -archivePath "build/archives/youtube-ios-player-helper-iphonesimulator-x86_64" \
    BUILD_LIBRARY_FOR_DISTRIBUTION=YES \
    SKIP_INSTALL=NO
  1. Assemble generated archives into an xcframework
xcodebuild -create-xcframework \
        -framework "build/archives/youtube-ios-player-helper-iphoneos-arm64.xcarchive/Products/Library/Frameworks/YouTubeiOSPlayerHelper.framework" \
        -framework "build/archives/youtube-ios-player-helper-iphonesimulator-x86_64.xcarchive/Products/Library/Frameworks/YouTubeiOSPlayerHelper.framework" \
        -output "build/YouTubeiOSPlayerHelper.xcframework"
  1. Copy generated YouTubeiOSPlayerHelper.xcframework to this project's root folder (replacing the older .xcframework)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published