From ae970600912500d274f9770d43e55c15ebaca717 Mon Sep 17 00:00:00 2001 From: David <153651244+DavidPluxia@users.noreply.github.com> Date: Sun, 17 May 2026 18:55:06 +0200 Subject: [PATCH] Fix iOS CocoaPods wrapper double compile --- ios/flutter_soloud.podspec | 5 +++++ 1 file changed, 5 insertions(+) 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'