Building in codemagic.io, it build for Android but for iOS it gives this:
1 error generated.
While building module 'flutter_ffmpeg' imported from /Users/builder/clone/ios/Runner/GeneratedPluginRegistrant.m:14:
In file included from
In file included from /Users/builder/clone/build/ios/Release-iphoneos/flutter_ffmpeg/flutter_ffmpeg.framework/Headers/flutter_ffmpeg-umbrella.h:13:
/Users/builder/clone/build/ios/Release-iphoneos/flutter_ffmpeg/flutter_ffmpeg.framework/Headers/FlutterFFmpegPlugin.h:21:9: fatal error: could not build module 'mobileffmpeg'
#import
~~~^
2 errors generated.
/Users/builder/clone/ios/Runner/GeneratedPluginRegistrant.m:14:9: fatal error: could not build module 'flutter_ffmpeg'
#import
In my Podfile:
system('rm -rf .symlinks')
system('mkdir -p .symlinks/plugins')
plugin_pods = parse_KV_file('../.flutter-plugins')
plugin_pods.each do |name, path|
symlink = File.join('.symlinks', 'plugins', name)
File.symlink(path, symlink)
if name == 'flutter_ffmpeg'
pod name+'/audio-lts', :path => File.join(symlink, 'ios')
else
pod name, :path => File.join(symlink, 'ios')
end
end
Did you do a correct dependency of flutter_ffmpeg, as specified in the README ?
You could try to modify your Podfile
Maybe your problem will be solved if you link your app with the module "audio-lts".
Just try ...
My podfile is in the end of the post.
Oh ! sorry, I am tired and did not look very carefully your post. 馃憥
This seems good. 馃憤
Actually I have no idea of the reason of your problem.
I'm getting the same exact error and I could not compile and run on emulator. but if build like 'flutter build ios ...' works fine without compilation errors.

Perhaps this is a problem with your Xcode configuration.
Are you sure to open Runner.xcworkspace and not Runner.xcodeproj ?
What is your target Version ?
We are using 10.x without failure.
Maybe problems with old iOS SDK :
SDK 9.x is probably the minimum.
I confirm : SDK 9.3 is the minimum for the audio-lts package.
And SDK 12.1 for the Main release
In Xcode :
I confirm : SDK 9.3 is the minimum for the audio-lts package.
And SDK 12.1 for the Main releaseIn Xcode :
- Select your target and go to the General tab.
- Check your target version
OMG, please mention this one in the README file. I spent 4 hours to get this solution. I was unable to built the project as Xcode set default version to 8.0. After changing it to 9.3, it builds successfully. Anyway, thanks for this package. Very useful.
Glad to hear that you solved your problem.
target set to 9.3.
podfile updated.
opening workspace not the project file.
See the screenshots below and the compilation errors.




updated to latest version but still I could not compile.
flutter_sound: ^3.1.6
I will try to look deeper on this issue in a few days (now I am very, very busy).
Good bet is that there is something wrong in your ios project parameters. But actually I have no idea what.
You can look my last comment on #265 : flutter_ffmpeg dependency is painful, and it will be good if we can get rid of it.
What is interesting in your screen shots is that flutter_ffmpeg does not find :
#import <mobileffmpeg/MobileFFmpegConfig.h>
This file is part of flutter_ffmpeg interface, and should be accessible by Xcode (if your pubspec.yaml mentions this plugin, and you did a flutter pub get)
Can you do flutter pub deps and check if flutter_ffmpeg is correctly linked, and its version number ?
@GiovanniSybot , @kmusham
We are currently working on the version 4.0.0 of Flutter Sound.
With this new version, the App will not need to depend any more on flutter_ffmpeg.
It would help us if you can try the version 4.0.0-beta.1 and tell us if it solve your actual problem.
But be careful : With this new version you MUST remove your dependency on ffmpeg and remove from your build.gradle and your Podfile the lines that you had to add for Version 3.1.x.
(Look to the README)
Could you try new version ^4.0.1 , and reopen this issue if you think that this point is not correctly addressed ?
I'm facing this issue again in flutter_sound 5.1.1
@tonypottera24 I was having the same problem, this is what worked for me:
upgrading cocoa pods did the trick, (I was already targeting 12+)
gem install cocoapods
Glad that you found the reason of your problem 馃槃
It works, thanks a lot!
Most helpful comment
I confirm : SDK 9.3 is the minimum for the audio-lts package.
And SDK 12.1 for the Main release
In Xcode :