I’m engaged on a Flutter mission on macOS Sequoia 15 with Xcode 16.1, working on VMware. When attempting to construct the mission, I encounter the next error:
Module 'audioplayers_darwin' not discovered
Steps Taken:
- Ran
flutter clear
to clear the construct artifacts. - Executed
flutter pub get
to fetch dependencies. - Ran
flutter pub improve
to make sure dependencies are updated. - Navigated to the
ios
folder and ranpod set up
with none points.
Key Particulars:
-
GeneratedPluginRegistrant.h comprises the next import logic:
#if __has_include(<audioplayers_darwin/AudioplayersDarwinPlugin.h>) #import <audioplayers_darwin/AudioplayersDarwinPlugin.h> #else @import audioplayers_darwin; #endif
-
The
Podfile
specifies:platform :ios, '12.0' use_frameworks! flutter_ios_podfile_setup
(Full
Podfile
content material is included beneath.) -
The
pubspec.yaml
consists of:audioplayers: ^6.1.0 vibration: ^2.0.1 device_info_plus: ^11.2.0 path_provider: ^2.5.3
Atmosphere:
- macOS: Sequoia 15 (VMware)
- Flutter: 3.5.3
- Xcode: 16.1
- iOS Deployment Goal: 12.0 (as laid out in
Podfile
)
Query:
What might be inflicting the Module 'audioplayers_darwin' not discovered
error, and the way can I resolve it? Are there any further steps or configurations I ought to verify for this setup?
Do I have to explicitly add any Podfile
configurations for audioplayers_darwin
, or may there be a difficulty with how the plugin is being linked?
Any insights or troubleshooting steps can be appreciated.