-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]:Cannot run Flutter 2.5 app on simulator with flutter_sound #775
Comments
Do you run on x86 or Apple Silicon M1 ? |
Mac Book Pro - Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz, not the M1. |
I think that there is a problem with Mobile FFmpeg and the architecture x86/arm64.
Do you use Flutter FFmpeg yourself ? Perhaps you can try to build your app with flutter_ffmpeg LITE, just to see if the problem is still there or disappears.
This is weird ! |
I tried the LITE version but it did not work, there were other errors with that one. The reason I created a brand new project is to make sure another packages in my app were not causing the problem. This was a brand new default counter app with only the flutter_sound package. Nothing else. Keith |
Perhaps a problem of compatibility between CocoaPods and Flutter. Sorry again. I do not see the reason of your problem. |
Today I tried the following to force a complete rebuilding the Pods directory (which includes the mobile-ffmpeg-audio folder): deleted the ios/Pods directory I was hoping this would fix things. Unfortunately it did not. I still have only the info.plist and lame documents in the lame.framework directory, no arm64 directories. And I still cannot run my app on the iOS simulator, only a physical device. BTW, I am able to run on the Android simulator. Does anyone have any idea how to resolve this? Thanks for your help. |
I also met the same issue after upgrading to flutter 2.5 |
It is possible that there is something bad on MobileFFmpeg with flutter 2.5
It is not easy for me to debug that, because I work on a Macintosh with an Apple Silicon M1 proc. The big problems are :
I am currently working on a V9 version of Tau Sound. If I have time (but I doubt it), I will try to fork MobileFFmpeg and try to fix those issues. Until that, perhaps you can use the LITE flavor of Flutter Sound |
I appreciate the help. I'm surprised there are not more encountering this issue. Like I said in the first message, rolling back to a previous version of Flutter got rid of the problem. |
Hi, Today, I was able to get a hand on a Macintosh x86. So, your problem is less simple than just a problem of incompatibility between flutter 2.5 and Flutter Sound. Just be aware that actually, Flutter Sound FULL cannot run on an iOS emulator running on a Macintosh with an Apple Silicon M1. This is bad, and I am going to try to fix that. |
Facing the same issue on a mac (intel version) with flutter 2.5.2, ios 14.2 simulator, full version of flutter sound library. |
Mobile FFmpeg is dead and not supported anymore. This library is supposed to be released during the incoming week. |
LE: i can also confirm it works on a physical device. |
Facing the same issue on a mac (intel version) with flutter 2.5.1, ios 14.5 simulator error text |
I'm facing the exact same issue on Intel Mac pro with Flutter 2.5.x and iOS 13 Pro Simulator . I already spent full day on this without much luck. |
Ditto cannot build on an intel macbook pro with flutter 2.5 and iOS 13 Simulator (or any simulator I've tried for that matter). Thank god I eventually found this thread! As others have said, will succeed when built with XCode for simulator or physical device but not with android studio for simulator |
This is weird. Myself, I am able to build and run on an iOS emulator, but only the LITE flavor because I am running an Apple Silicon M1 and FFmpeg does not like the M1. I am even not sure that you have all of you the same problem. $ flutter --version
Flutter 2.6.0-5.2.pre • channel beta • https://github.com/flutter/flutter.git
Framework • revision 400608f101 (5 weeks ago) • 2021-09-15 15:50:26 -0700
Engine • revision 1d521d89d8
Tools • Dart 2.15.0 (build 2.15.0-82.2.beta) |
l had the same issue and when l switch the |
@lekeCoder, thanks for the info. I changed to the beta channel (2.7.0-3.0 pre) and eventually I was able to get it to work! Before working I had to run "flutter upgrade --force", manually rebuild/upgrade iOS Podfiles (pod upgrade), then run the app under xCode. After all of this it now finally builds and debugs on an iOS simulator. Thank goodness! I'm curious if I now downgrade if it will start working on the 'stable' version, but I don't really want to go through the hassle. |
I solved this problem. It doesn't seem to be flutter_sound problem, configure the following in the IOS project:
|
Seems like we could mark this issue as |
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days. |
Flutter Sound Version : flutter_sound 8.14 through 8.3.12 (I've tried various versions)
FULL
Important: Result of the command :
flutter pub deps | grep flutter_sound
FINE: Pub 2.14.2
| |-- flutter_sound 8.3.12
| | |-- flutter_sound_platform_interface 8.3.12
| | |-- flutter_sound_web 8.3.12
| | | |-- flutter_sound_platform_interface...
Severity
Platforms you faced the error
Describe the bug
When I build a flutter app using flutter 2.5.1 and I include flutter_sound, the app will not run on the simulator using the flutter run command. However, if I use flutter run and direct execution to a physical device it does run.
Furthermore, if I run the app from XCode and target the simulator it will run.
I have been using flutter_sound for about a year on other versions of flutter, however, when I upgraded to flutter 2.5 this started happening. I then rolled back to flutter 2.1.3 and the issue stopped occurring. After upgrading to flutter 2.5 again the issue started occurring again.
I have been through many many cycles of deleting caches, DerivedData, flutter clean, etc. etc. to no avail.
To Reproduce
Steps to reproduce the behavior:
(notice the references to mobile-ffmpeg-audio and building for iOS Simulator):
flutter_sound_example_build_log.txt
The text was updated successfully, but these errors were encountered: