Currently uses version 1.0.4 release of the youtube-ios-player-helper
https://github.com/youtube/youtube-ios-player-helper
- Clone the youtube-ios-player-helper repo (or download its source)
- 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
- 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
- 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"
- Copy generated
YouTubeiOSPlayerHelper.xcframework
to this project's root folder (replacing the older.xcframework
)