florent37 / Flutter-AssetsAudioPlayer

Play simultaneously music/audio from assets/network/file directly from Flutter, compatible with android / ios / web / macos, displays notifications
https://pub.dartlang.org/packages/assets_audio_player
Apache License 2.0
757 stars 365 forks source link

Module 'assets_audio_player' not found #772

Open jennifer-uitoux opened 1 year ago

jennifer-uitoux commented 1 year ago
Screenshot 2023-04-27 at 3 39 25 PM

Flutter Version

My version : Flutter (Channel stable, 3.0.3, on macOS 11.5.2 20G95 darwin-arm (Rosetta), locale en-IN)

Lib Version

My version : assets_audio_player: ^3.0.6

Platform (Android / iOS/web) + version

Platform: iOS

I'm getting the error Module 'assets_audio_player' not found if I try to run the project in xcode.

I'm not able to find any solution regarding this issue.

crimson-knight commented 1 year ago

That looks like you're trying to import the library in the wrong place (an objective-C file instead of a dart file).

In your dart package, import using this syntax:

import 'package:assets_audio_player/assets_audio_player.dart';
pro100andrey commented 11 months ago

hi @all

After setting 'Debug' to 'Yes' in the 'Build Active Architecture Only' option, it started working for me.

Screenshot 2023-12-11 at 12 55 24
1074f commented 3 months ago

This fix doesn't work in my case. This issue has been reported twice => #772 #720 . None of these tickets has a solution.
@florent37 any idea ?