Reputation: 681
I'm using Alamofire in my project,after updating the xcode to latest version 8.0 I can't build my project.It shows lots of errors regarding alamofire: My previous swift version was 2.2 and xcode version was 7.x Alamofire will not be code signed because its settings don't specify a development team. “Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
Then I followed following links: Xcode 8 Beta 3 Use Legacy Swift issue
but it'll generate 193 issues. What can I do about this?.
Upvotes: 1
Views: 467
Reputation: 2855
I also facing this issues, when i update the Xcode to latest version. Alamofire gives lots of error in Xcode 8. You have to update your pods. If you are using the Alamofire through pods, then select your podfile and add this code.
/*
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target '<Your Target Name>' do
pod 'Alamofire', '~> 4.0'
end
*/
And after that close your pod file. Open your terminal and update your pods using this command.
/*
pod update
*/
Now you can use the Alamofire without any errors. Hopefully it will helps you.
Thanks Mandeep Singh
Upvotes: 3