Alamofire Xcode 8 Swift 3 results in 786 compile errors

前端 未结 10 2493
一个人的身影
一个人的身影 2020-12-29 20:00

I am using the Xcode 8.0 GM. I created a default single-view app with my deployment target set to 9.0.

In my Podfile I\'m targeting the bleeding edge Swift 3 branch:

10条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 20:28

    I solved similar issue by using :

    platform :ios, '9.0'
    use_frameworks!
    target 'PROJECT NAME HERE' do
    pod 'Alamofire'
    end
    
    post_install do |installer|
        installer.pods_project.targets.each do |target|
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '3.0'
            end
        end
    end
    

提交回复
热议问题