wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
126 stars 20 forks source link

How to run example in macos #69

Closed shineFoyMylove closed 4 months ago

shineFoyMylove commented 4 months ago

Describe the bug Failed to run example in macos when run pod install. [!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/ios/Desktop/temp_code/fvp-master/example/macos/Pods/mdk/mdk-sdk/lib/mdk.xcframework)

Other Example project can run successfully on iphone device.

Log

$ pod install
Analyzing dependencies
Downloading dependencies
Installing FlutterMacOS (1.0.0)
Installing fvp (0.0.1)
Installing mdk (0.24.0)
Installing video_player_avfoundation (0.0.1)
[!] The 'Pods-Runner' target has transitive dependencies that include statically linked binaries: (/Users/ios/Desktop/temp_code/fvp-master/example/macos/Pods/mdk/mdk-sdk/lib/mdk.xcframework)

Flutter version

Flutter 3.13.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision ead455963c (4 months ago) • 2023-09-26 18:28:17 -0700
Engine • revision a794cf2681
Tools • Dart 3.1.3 • DevTools 2.25.0

Someone can help me how to solve the problem and run successfully on macos

wang-bin commented 4 months ago

flutter run -d macos, not pod install. to run you own examples, see https://github.com/wang-bin/fvp?tab=readme-ov-file#how-to-use

Installing fvp (0.0.1)

do you modify the code? if run the example in this project, no need to install fvp. and the version is too old.

shineFoyMylove commented 4 months ago

resolve it when update gem, ruby and reinstall cocoapods, Too bad i don't know why.