bluefireteam / audioplayers

A Flutter package to play multiple audio files simultaneously (Android/iOS/web/Linux/Windows/macOS)
https://pub.dartlang.org/packages/audioplayers
MIT License
1.98k stars 843 forks source link

Swift Compiler Error (Xcode): Cannot find 'AVURLAssetOverrideMIMETypeKey' in scope #1809

Open jeremielodi opened 3 months ago

jeremielodi commented 3 months ago

Checklist

Current bug behaviour

Fail to run the app on IOS because of this issue on audioplayer

Expected behaviour

audioplayer should work on IOS

Steps to reproduce

  1. Execute flutter run on the code sample
  2. ...
  3. ...

Code sample

audioplayers: ^6.0.0

Affected platforms

iOS

Platform details

s

AudioPlayers Version

6.0.0

Build mode

No response

Audio Files/URLs/Sources

s

Screenshots

Screenshot 2024-06-05 at 14 28 02

Logs

Running pod install... Running Xcode build... Xcode build done. 22.4s Failed to build iOS app Swift Compiler Error (Xcode): Cannot find 'AVURLAssetOverrideMIMETypeKey' in scope /Users/macbook/.pub-cache/hosted/pub.dev/audioplayers_darwin-6.0.0/ios/Classes/WrappedMediaPlayer.swift:184:36

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

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

Related issues / more information

No response

Working on PR

yeah

andrzejp-iRonin commented 3 months ago

you need Xcode 15 for this, so this plugin will compile only on Macs with Sonoma, which is a bit overextended