Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
877 stars 573 forks source link

Duplicate symbol issue when using flutter_sound plugin and audioplayer plugin #33

Closed linguitang closed 5 years ago

linguitang commented 5 years ago

duplicate symbol __channel in flutter_sound plugin and audioplayer plugin

hyochan commented 5 years ago

Could you be more specific?

linguitang commented 5 years ago
duplicate symbol __channel in:
/Users/lingt/root/client/build/ios/Debug-iphoneos/audioplayer/libaudioplayer.a(AudioplayerPlugin.o)
/Users/lingt/root/client/build/ios/Debug-iphoneos/flutter_sound/libflutter_sound.a(FlutterSoundPlugin.o)
ld: 1 duplicate symbol for architecture armv7
abdalmonem commented 5 years ago

1 - open xCode 2 - go to target , then click on "build settings" 3 - search on "no common blocks" 4 - change it value to "no" screenshot 2019-01-27 at 2 04 54 pm

linguitang commented 5 years ago

1 - open xCode 2 - go to target , then click on "build settings" 3 - search on "no common blocks" 4 - change it value to "no" screenshot 2019-01-27 at 2 04 54 pm

same problem. @abdalmonem

hyochan commented 5 years ago

rm -rf ios/build then try again in your project's root path.

linguitang commented 5 years ago

rm -rf ios/build then try again in your project's root path.

same problem. @hyochan

hyochan commented 5 years ago

Not sure about this one. Would this help? I think this is more related to flutter channel.

linguitang commented 5 years ago

Not sure about this one. Would this help? I think this is more related to flutter channel.

This should be the reason, but I don't know how to solve it. @hyochan

abdalmonem commented 5 years ago

you can try to remove "Audioplayer" i am new in flutter , and all i know is: "flutter_sound" and "audioPlayer" use the same channel name then try to use another audio player plugin

hyochan commented 5 years ago

@linguitang If you are using other plugins that have audio player or audio recorder, please share. You lack information for us to dig in and think widely.

linguitang commented 5 years ago

I use audioplayers replace audioplayer, no problem. @hyochan @abdalmonem

hyochan commented 5 years ago

@linguitang Player is already in our plugin you don’t need those.