Alamofire - does not sign with code because its settings do not indicate the development team in Xcode 8

I hit the error below on Xcode 8, anyone can help solve it. My application must support iOS 8 and above.

Alamofire will not be signed by code because its settings do not define the development team. Use the legacy version of Swift (SWIFT_VERSION) must be properly configured for purposes that use Swift. Use the [Edit> Convert> To Current Swift Syntax ...] menu to select the Swift version or use the Build settings editor to directly configure the build options.

thank

+4
source share
2 answers

Alamofire Xcode 8 :

1) <yourproject>.xcworkspace

2) "" → "" → "" → " " :

enter image description here

, , Alamofire 4.0 - Swift 3/Xcode 8. .

PS "Alamofire , ". , , pod install , Alamofire - , . .

+9

, Swift:

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
+6

Source: https://habr.com/ru/post/1654541/


All Articles