FlutterRadioPlayer icon indicating copy to clipboard operation
FlutterRadioPlayer copied to clipboard

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

Open korchix opened this issue 2 years ago • 11 comments

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 avatar Oct 31 '23 07:10 korchix

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

korchix avatar Oct 31 '23 08:10 korchix

in second comment just add: default: break

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

JonathanPerezV avatar Nov 21 '23 15:11 JonathanPerezV

same issue here

DenisDoc avatar Jan 08 '24 08:01 DenisDoc

same issue here

michelmelo avatar Apr 03 '24 13:04 michelmelo

Still there, anyone still working on this ?

floriansipp avatar May 06 '24 17:05 floriansipp

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

Sithira avatar Aug 14 '24 04:08 Sithira