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

Value of type 'AudioPlayer.EventHolder' has no member 'receiveMetadata' #88

Open
korchix opened this issue Oct 31, 2023 · 11 comments
Open

Comments

@korchix
Copy link

korchix commented Oct 31, 2023

hello, when trying to run the flutter app on iPhone 14 Simulator i got this error:

Launching lib/main.dart on iPhone 14 in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 17,8s
Failed to build iOS app

Swift Compiler Error (Xcode): Value of type 'AudioPlayer.EventHolder' has no member 'receiveMetadata'
/Users/radio/.pub-cache/hosted/pub.dev/flutter_radio_player-2.0.2/ios/Classes/core/services/FRPCoreService.swift:49:21

Uncategorized (Xcode): Command SwiftEmitModule failed with a nonzero exit code

Could not build the application for the simulator.
Error launching application on iPhone 14.

// add listeners
player.event.receiveMetadata.addListener(self, FRPPlayerEventHandler.handleMetaDataChanges)

@korchix
Copy link
Author

korchix commented Oct 31, 2023

and this issue too:

Failed to build iOS app
Swift Compiler Error (Xcode): Switch must be exhaustive
/Users/radio/.pub-cache/hosted/pub.dev/flutter_radio_player-2.0.2/ios/Classes/core/services/support/FRPPlayerEventHandler.swift:33:8

@JonathanPerezV
Copy link

in second comment just add:
default: break

in first i have the same issue, could you solve?

@DenisDoc
Copy link

DenisDoc commented Jan 8, 2024

same issue here

1 similar comment
@michelmelo
Copy link

same issue here

@floriansipp
Copy link

Still there, anyone still working on this ?

@Sithira
Copy link
Owner

Sithira commented Aug 14, 2024

@JonathanPerezV if you have fixed it, Please feel free to open a PR :-)

@Glydric
Copy link

Glydric commented Aug 20, 2024

Just change receiveMetadata with receiveCommonMetadata

@Glydric
Copy link

Glydric commented Aug 20, 2024

Also you should add default: break
in the file Classes/core/services/support/FPRPlayerEventHandler

@Sithira
Copy link
Owner

Sithira commented Aug 20, 2024 via email

@Glydric
Copy link

Glydric commented Aug 20, 2024

Guys, change checkout to dev/v3 branch. It’s much more stable. I will do the release after the docs are updated 😎 Sent from Gmail Mobile for iPhone

On Tue, Aug 20, 2024 at 6:10 PM Dott. Leonardo Migliorelli < @.> wrote: Just change receiveMetadata with receiveCommonMetadata — Reply to this email directly, view it on GitHub <#88 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6V3BMSK54KY4Z5AHYOYGLZSM2MFAVCNFSM6AAAAAA6XHNM4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJYG43DEMJVGA . You are receiving this because you commented.Message ID: @.>

Thanks for the fast reply, I'm currently using dart version, so I can't do this

@Sithira
Copy link
Owner

Sithira commented Aug 22, 2024

Guys, change checkout to dev/v3 branch. It’s much more stable. I will do the release after the docs are updated 😎 Sent from Gmail Mobile for iPhone

On Tue, Aug 20, 2024 at 6:10 PM Dott. Leonardo Migliorelli < @.> wrote: Just change receiveMetadata with receiveCommonMetadata — Reply to this email directly, view it on GitHub <#88 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6V3BMSK54KY4Z5AHYOYGLZSM2MFAVCNFSM6AAAAAA6XHNM4OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJYG43DEMJVGA . You are receiving this because you commented.Message ID: _@**.**_>

Thanks for the fast reply, I'm currently using dart version, so I can't do this

I will try to release the v3 on this weekend. Fingers crossed 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants