File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,6 +70,10 @@ package-lock.json
7070ios /generated /
7171android /generated /
7272
73+ # Vendored XCFrameworks (built from source by prepare_command / build scripts)
74+ ios /opus /lib /
75+ ios /whisper /lib /
76+
7377# Build artifacts
7478* .tgz
7579
Original file line number Diff line number Diff line change 11# Build artifacts
22ios /opus /build /
3- ios /opus /build-opus.sh
43ios /whisper /build /
5- ios /whisper /build-whisper.sh
64ios /whisper /models /
75ios /build /
86android /build /
Original file line number Diff line number Diff line change @@ -13,6 +13,20 @@ Pod::Spec.new do |s|
1313 s . platforms = { :ios => "15.1" }
1414 s . source = { :git => "https://github.com/holepunchto/webm-player.git" , :tag => "#{ s . version } " }
1515
16+ # Build vendored XCFrameworks from source during pod install (parity with Android CMake FetchContent).
17+ # Requires: Xcode CLI tools, cmake (for whisper). Runs once per pod install/update.
18+ s . prepare_command = <<-SCRIPT
19+ set -e
20+ if [ ! -f ios/opus/lib/opus.xcframework/Info.plist ]; then
21+ echo "[WebmPlayer] Building Opus 1.6.1 XCFramework from source..."
22+ bash ios/opus/build-opus.sh build
23+ fi
24+ if [ ! -f ios/whisper/lib/whisper.xcframework/Info.plist ]; then
25+ echo "[WebmPlayer] Building whisper.cpp v1.8.4 XCFramework from source..."
26+ bash ios/whisper/build-whisper.sh build
27+ fi
28+ SCRIPT
29+
1630 # iOS-specific sources (Objective-C++)
1731 # libwebm mkvparser sources vendored under cpp/third_party/libwebm/
1832 # SpeexDSP resampler sources vendored under cpp/third_party/speexdsp/
Original file line number Diff line number Diff line change 2424 " ios/common/**/*" ,
2525 " ios/playback/**/*" ,
2626 " ios/video/**/*" ,
27- " ios/opus/lib/**/*" ,
28- " ios/whisper/lib/**/*" ,
29- " ios/transcript/**/*" ,
27+ " ios/opus/build-opus.sh" ,
28+ " ios/whisper/build-whisper.sh" ,
3029 " cpp/**/*" ,
3130 " *.podspec" ,
3231 " react-native.config.js"
You can’t perform that action at this time.
0 commit comments