piemonte / Poly

🦕 Unofficial Google Poly SDK in Swift – search, discover, and download 3D models and scenes

Home Page:http://poly.google.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support for swift 5.0 and Xcode 10.2

piemonte opened this issue · comments

support for swift 5.0 and Xcode 10.2

With Xcode 10.2, one of Poly's dependencies currently requires this script in your Podfile post install.

This is only required until this PR has landed.

post_install do |installer|
  installer.pods_project.targets.each do |target|
    if target.name == 'Cache'
      target.build_configurations.each do |config|
        level = '-Osize'
        config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = level
        puts "Set #{target.name} #{config.name} to Optimization Level #{level}"
      end
    end
  end
end