tschob / AudioPlayerManager

⚠️ No longer maintained ⚠️ Small Swift Wrapper and Queue-Manager around AVPlayer which let you play MediaPlayer items and stream songs from URLs.
MIT License
81 stars 25 forks source link

Swift 4 #37

Open AndrewBarba opened 7 years ago

AndrewBarba commented 7 years ago

Add support for building with Swift 4

tschob commented 7 years ago

The project can be build with Swift 3.2. As Xcode 9 is supported with this way, Swift 4 is not on my urgency list. The advantage is that upcoming features can be used with Xcode 8.3 and and Xcode 9.

bshirley commented 6 years ago

workaround: add this right before the last end in your Podfile.

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == 'AudioPlayerManager'
      target.build_configurations.each do |config|
        config.build_settings['SWIFT_VERSION'] = '3.0'
      end
    end
  end
end

This will set the swift version for only this pod.