2find / stereo

A Flutter plugin for playing music on iOS and Android.
https://pub.dartlang.org/packages/stereo
MIT License
68 stars 18 forks source link

ios file picker does nothing #41

Open thejacer87 opened 5 years ago

thejacer87 commented 5 years ago

when i run the example and try to pick a file from my music on a real iPhone (emulator doesn't work AFAIK, since you can't put songs on the emulator) nothing happens.

None of the songs get loaded into the player. In fact I can't even hit cancel to go back (edit 2: i can cancel if i hit it immediately, but if i try to select a song, then cancel, it hangs). Just stuck in the music file picker. so i have to manually close and restart the example (edit: apparently if i leave it long enough, it just crashes the app).

error output in the xcode console (not sure if i can get a flutter error since I'm running it on a real device):

https://pastebin.com/E44pCMFM

faku99 commented 5 years ago

Which iOS version are you running? I did not look into iOS 12 changes but Apple might have changed the way the music picker works thus making the Stereo example not compatible.

I'm currently in an exam period for school so I'll not have time to look into it but as soon as I'm done with it, I'll give it a look.

thejacer87 commented 5 years ago

ya looks like i am using iOS 12.

thejacer87 commented 5 years ago

also, an fyi, i'm not sure exactly how/why its happening, but i had to modify ios/.symlinks/plugins/stereo/pubspec.yml

the iosPrefix was causing issues in the build. maybe it's part of the ios 11/12 differences for flutter

flutter:
  plugin:
    androidPackage: com.twofind.stereo
    pluginClass: StereoPlugin
#   iosPrefix: ST
MarkOSullivan94 commented 5 years ago

@thejacer87 did you have any further steps? I have no ios/.syslinks directory and even whenever I've updated the project pubspec yaml it doesn't help

thejacer87 commented 5 years ago

@MarkOSullivan94 ios/symlinks, not syslinks. haven't been working on this project for a long time, so i have no help to offer, sorry. :)

hopefully @faku99 will be able to fix it for you

MarkOSullivan94 commented 5 years ago

Whoops sorry, typo! I couldn't see that either last night sadly 😞

Thanks for responding anyway!

pandeysudhan commented 5 years ago

also, an fyi, i'm not sure exactly how/why its happening, but i had to modify ios/.symlinks/plugins/stereo/pubspec.yml

the iosPrefix was causing issues in the build. maybe it's part of the ios 11/12 differences for flutter

flutter:
  plugin:
    androidPackage: com.twofind.stereo
    pluginClass: StereoPlugin
#   iosPrefix: ST

You Solved it @thejacer87 Thank you