media-kit / media-kit

A cross-platform video player & audio player for Flutter & Dart.
https://github.com/media-kit/media-kit
MIT License
916 stars 132 forks source link

[Bug Report] Error when trying to run on iOS simulator #103

Closed armanhadifatah closed 1 year ago

armanhadifatah commented 1 year ago

Hello dear

I get this error when I want to run it from xcode for simulator

Building for iOS Simulator, but linking in dylib built for iOS, file '/Users/arman/.pub-cache/hosted/pub.dev/media_kit_libs_ios_video-1.0.0/ios/Libs/libmpv.dylib' for architecture arm64

and i use these in my pubspec.yaml

  media_kit: ^0.0.2
  media_kit_libs_ios_video: ^1.0.0
alexmercerind commented 1 year ago

Hi @armanhadifatah,

Please update the dependencies, we just released a fix:

dependencies:
  media_kit: ^0.0.3
  # For video rendering.
  media_kit_video: ^0.0.2
  # Enables support for higher number of concurrent instances. Optional.
  media_kit_native_event_loop: ^1.0.1
  # Pick based on your requirements / platform:
  media_kit_libs_windows_video: ^1.0.1          # Windows package for video (& audio) native libraries.
  media_kit_libs_ios_video: ^1.0.1              # iOS package for video (& audio) native libraries.
  media_kit_libs_macos_video: ^1.0.1            # macOS package for video (& audio) native libraries.
  media_kit_libs_linux: ^1.0.1                  # Linux dependency package.

I hope this will work.

alexmercerind commented 1 year ago

Works?

armanhadifatah commented 1 year ago

Now it give me this error

Library not found for -lmpv

alexmercerind commented 1 year ago

flutter clean?

Our CI is working for iOS: https://github.com/alexmercerind/media_kit/actions/runs/4601024537/jobs/8128542838

abdelaziz-mahdy commented 1 year ago

flutter clean?

Our CI is working for iOS: https://github.com/alexmercerind/media_kit/actions/runs/4601024537/jobs/8128542838

i think https://github.com/alexmercerind/media_kit/pull/97 updated both media_kit_video and media_kit_native_event_loop too.

this is why it fails in our side

alexmercerind commented 1 year ago

Good call!

armanhadifatah commented 1 year ago

I updated everything also run flutter clean pod update on ios folder but i get this error

Screen Shot 2023-04-04 at 12 01 20 AM
media_kit_native_event_loop
       Library not found for -lmpv
alexmercerind commented 1 year ago

flutter pub get now

abdelaziz-mahdy commented 1 year ago

https://pub.dev/packages/media_kit_video

flutter pub get now

is still 0.0.2, not updated (just letting you know)

armanhadifatah commented 1 year ago

Guys I did everything this is what i have in my pubspec.yaml

  flutter_meedu_videoplayer: 4.0.8
  media_kit: ^0.0.3+1
  media_kit_video: ^0.0.2
  media_kit_libs_ios_video: ^1.0.1
  media_kit_native_event_loop: ^1.0.2

I still get the error

media_kit_native_event_loop
       Library not found for -lmpv
alexmercerind commented 1 year ago

Use media_kit_video: ^0.0.3

abdelaziz-mahdy commented 1 year ago

Guys I did everything this is what i have in my pubspec.yaml

  flutter_meedu_videoplayer: 4.0.8
  media_kit: ^0.0.3+1
  media_kit_video: ^0.0.2
  media_kit_libs_ios_video: ^1.0.1
  media_kit_native_event_loop: ^1.0.2

I still get the error

media_kit_native_event_loop
       Library not found for -lmpv

flutter_meedu_videoplayer i didnt update it yet, it will miss up the build for you until i update it

birros commented 1 year ago

@armanhadifatah The following versions will solve your problem. This is due to an error on my part (see #105) Sorry...

media_kit_video: ^0.0.4
media_kit_libs_ios_video: ^1.0.2
media_kit_libs_macos_video: ^1.0.2