stereo icon indicating copy to clipboard operation
stereo copied to clipboard

ios file picker does nothing

Open thejacer87 opened this issue 7 years ago • 7 comments

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

thejacer87 avatar Jan 02 '19 07:01 thejacer87

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.

faku99 avatar Jan 02 '19 16:01 faku99

ya looks like i am using iOS 12.

thejacer87 avatar Jan 02 '19 17:01 thejacer87

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

thejacer87 avatar Jan 02 '19 22:01 thejacer87

@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

MarkOSullivan94 avatar Mar 27 '19 22:03 MarkOSullivan94

@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

thejacer87 avatar Mar 27 '19 22:03 thejacer87

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

Thanks for responding anyway!

MarkOSullivan94 avatar Mar 28 '19 10:03 MarkOSullivan94

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

pandeysudhan avatar Jun 03 '19 08:06 pandeysudhan