Skip to content

Latest commit

 

History

History
38 lines (35 loc) · 1.56 KB

File metadata and controls

38 lines (35 loc) · 1.56 KB

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)