Launching lib/main.dart on iPhone 13 in debug mode...
Running Xcode build...
Xcode build done. 10.9s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/qs/jk5lkxd10dv6bb9ftq6y_xbh0000gn/T/flutter_tools.nifLdR/flutter_ios_build_temp_dirI9HhER/temporary_xcresult_bundle
/Users/bastengao/dev/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_radio_player-2.0.0/ios/Classes/core/services/FRPCoreService.swift:50:78: error: cannot convert value of type
'(Array<AVMetadataItem>) -> ()' to expected argument type '(AudioPlayer.MetadataEventData) -> Void' (aka '(Array<AVTimedMetadataGroup>) -> ()')
player.event.receiveMetadata.addListener(self, FRPPlayerEventHandler.handleMetaDataChanges)
^
/Users/bastengao/dev/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_radio_player-2.0.0/ios/Classes/core/services/FRPCoreService.swift:50:78: note: arguments to generic parameter 'Element'
('AVTimedMetadataGroup' and 'AVMetadataItem') are expected to be equal
player.event.receiveMetadata.addListener(self, FRPPlayerEventHandler.handleMetaDataChanges)
^
note: Building targets in dependency order
warning: Run script build phase 'Thin Binary' 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 'Runner' from project 'Runner')
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 'Runner' from project 'Runner')
Result bundle written to path:
/var/folders/qs/jk5lkxd10dv6bb9ftq6y_xbh0000gn/T/flutter_tools.nifLdR/flutter_ios_build_temp_dirI9HhER/temporary_xcresult_bundle
Swift Compiler Error (Xcode): Cannot convert value of type '(Array<AVMetadataItem>) -> ()' to expected argument type '(AudioPlayer.MetadataEventData) -> Void' (aka '(Array<AVTimedMetadataGroup>) -> ()')
/Users/bastengao/dev/tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_radio_player-2.0.0/ios/Classes/core/services/FRPCoreService.swift:49:77
Flutter 3.3.10, flutter_radio_player: 2.0.0