-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on iOS 12 #54
Comments
Does this also happen on the official example in this repository? |
Yes it does crash @ryanheise |
How about on an actual device? I want to rule out perhaps an issue with your development environment. |
flutter doctor? |
Our use case @override
void initState() {
super.initState();
WidgetsBinding.instance.addPostFrameCallback((_) {
initAudiManager();
});
} void initAudiManager() {
try {
AudioSession.instance.then((audioSession) async {
// This line configures the app's audio session, indicating to the OS the
// type of audio we intend to play. Using the "speech" recipe rather than
// "music" since we are playing a podcast.
audioSession.devicesChangedEventStream.listen((event) {
Logger().i('Devices added: ${event.devicesAdded}');
Logger().i('Devices removed: ${event.devicesRemoved}');
});
await audioSession.configure(const AudioSessionConfiguration.music());
});
} catch (e) {
// fail silently
Logger().e(e);
}
} |
That is not necessary, because you said the official example already reproduces the bug. I have the official example, I can just use that without using your code. Still, I need your flutter doctor output because when I run the official example, I don't see the problems you are seeing. |
flutter doctor -v
|
Thanks, I'll check later whether my versions match yours. |
Hi,
When trying to run my app on iOS 12 it crashes with the following message:
dyld: Library not loaded: /System/Library/Frameworks/AVFAudio.framework/AVFAudio
Referenced from: /Users/hennie/Library/Developer/CoreSimulator/Devices/E29CF1A8-DF5D-4202-8758-649CEB6077CB/data/Containers/Bundle/Application/BA9BDD13-3C82-4C97-BF4A-E9A4AD758415/Runner.app/Frameworks/audio_session.framework/audio_session
Reason: image not found
The text was updated successfully, but these errors were encountered: