diff --git a/ios/flutter_soloud.podspec b/ios/flutter_soloud.podspec index 2876f6ae..5288b125 100644 --- a/ios/flutter_soloud.podspec +++ b/ios/flutter_soloud.podspec @@ -15,6 +15,11 @@ Flutter audio plugin using SoLoud library and FFI s.source = { :path => '.' } s.source_files = 'flutter_soloud/Sources/flutter_soloud/*' + # flutter_soloud.mm is the SwiftPM wrapper that includes the full C++ + # implementation. CocoaPods builds the same implementation through the + # CMake script phase below, so compiling the wrapper here defines duplicate + # symbols when the app also force-loads libflutter_soloud_plugin.a. + s.exclude_files = 'flutter_soloud/Sources/flutter_soloud/flutter_soloud.mm' s.dependency 'Flutter' s.platform = :ios, '13.0'