Skip to content

Instantly share code, notes, and snippets.

@sunnyyoung
Created July 9, 2024 09:25
Show Gist options
  • Save sunnyyoung/eb771ecc88d79f572a0932b6a8ab008c to your computer and use it in GitHub Desktop.
Save sunnyyoung/eb771ecc88d79f572a0932b6a8ab008c to your computer and use it in GitHub Desktop.
build-vlckit.sh
#!/bin/bash
set -e
VERSION="3.6.1b1-8e652244-ac310b4b"
for KIT in VLCKit MobileVLCKit TVVLCKit; do
curl "https://download.videolan.org/pub/cocoapods/unstable/$KIT-$VERSION.tar.xz" | tar -xz
done
xcodebuild -create-xcframework \
-framework "$PWD/VLCKit - binary package/VLCKit.xcframework/macos-arm64_x86_64/VLCKit.framework" \
-debug-symbols "$PWD/VLCKit - binary package/VLCKit.xcframework/macos-arm64_x86_64/dSYMs/VLCKit.framework.dSYM" \
-framework "$PWD/MobileVLCKit-binary/MobileVLCKit.xcframework/ios-arm64_armv7_armv7s/MobileVLCKit.framework" \
-debug-symbols "$PWD/MobileVLCKit-binary/MobileVLCKit.xcframework/ios-arm64_armv7_armv7s/dSYMs/MobileVLCKit.framework.dSYM" \
-framework "$PWD/MobileVLCKit-binary/MobileVLCKit.xcframework/ios-arm64_i386_x86_64-simulator/MobileVLCKit.framework" \
-debug-symbols "$PWD/MobileVLCKit-binary/MobileVLCKit.xcframework/ios-arm64_i386_x86_64-simulator/dSYMs/MobileVLCKit.framework.dSYM" \
-framework "$PWD/TVVLCKit-binary/TVVLCKit.xcframework/tvos-arm64/TVVLCKit.framework" \
-debug-symbols "$PWD/TVVLCKit-binary/TVVLCKit.xcframework/tvos-arm64/dSYMs/TVVLCKit.framework.dSYM" \
-framework "$PWD/TVVLCKit-binary/TVVLCKit.xcframework/tvos-arm64_x86_64-simulator/TVVLCKit.framework" \
-debug-symbols "$PWD/TVVLCKit-binary/TVVLCKit.xcframework/tvos-arm64_x86_64-simulator/dSYMs/TVVLCKit.framework.dSYM" \
-output VLCKit.xcframework
zip -ry9 VLCKit.xcframework.zip VLCKit.xcframework
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment