AudioPlayerManager icon indicating copy to clipboard operation
AudioPlayerManager copied to clipboard

Swift 4

Open AndrewBarba opened this issue 8 years ago • 2 comments
trafficstars

Add support for building with Swift 4

AndrewBarba avatar Oct 16 '17 16:10 AndrewBarba

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.

tschob avatar Oct 16 '17 19:10 tschob

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.

bshirley avatar Aug 19 '18 23:08 bshirley