Following README.md, I've set the bridging header including AWSApiGatewayBridge.h.
The generated client SDK written by Swift has a lot of compiler errors in Swift 3 so I've replaced the generated Swift 2 code with Swift 3.
I replaced them all:Not instanciate an Object from APIGatewayClient class.
But Xcode says a following error message.
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1"
The generated Client.swift has init function.
init(configuration: AWSServiceConfiguration) {
super.init()
self.configuration = configuration.copy() as! AWSServiceConfiguration
...
}
In the function, I found a line making the error. But I couldn't find the way to fix it.
self.configuration = configuration.copy() as! AWSServiceConfiguration
If the line was commented out, Xcode can compile successfully.
Is the error caused by Xcode setting or my personal problem? Anyone can use APIGatewayClient(Swift) in Swift 3?
i use Xcode ver8.2.1
The generated client Swift SDK does not work in Swift 3.
You need to use the Objective C generated SDK if your application is written by Swift 3.
https://github.com/aws/aws-sdk-ios/issues/510