Skip to content
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

3.1.1 Macos Method not found #841

Open
Davidzhu001 opened this issue Jul 21, 2024 · 3 comments · May be fixed by #864
Open

3.1.1 Macos Method not found #841

Davidzhu001 opened this issue Jul 21, 2024 · 3 comments · May be fixed by #864
Assignees
Labels
bug Something isn't working

Comments

@Davidzhu001
Copy link

Davidzhu001 commented Jul 21, 2024

Version

My version : 3.1.1

Platform (Android / iOS / web) + version

Platform : Macos

Describe the bug

/2024-flutter-tac/plugins/assets_audio_player/darwin/Classes/Music.swift:819:14: error: value of type 'Player' has no member 'invokeListenerStop'
        self.invokeListenerStop()
        ~~~~ ^~~~~~~~~~~~~~~~~~
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
** BUILD FAILED **

Building macOS application...                                           
Error: Build process failed
@Davidzhu001 Davidzhu001 added the bug Something isn't working label Jul 21, 2024
@hanumanAbacus
Copy link

same issue

@tmpsantos
Copy link

tmpsantos commented Feb 28, 2025

This is happening because this function is inside of a big block of #if os(iOS), so it is not defined in the macOS build and thus, compilation fails. Should be easy to fix assuming we can just move it out of this block.

tmpsantos added a commit to tmpsantos/Flutter-AssetsAudioPlayer that referenced this issue Feb 28, 2025
This function is used by the macOS code but it is inside a `#if os(iOS)`
block. After moving this function, it at least compiles.

Fixes florent37#841
@tmpsantos tmpsantos linked a pull request Feb 28, 2025 that will close this issue
@tmpsantos
Copy link

Made a PR with what made it compile for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants