ionic-plugin-callkit icon indicating copy to clipboard operation
ionic-plugin-callkit copied to clipboard

Fix Swift 3 compilation

Open phyr0s opened this issue 8 years ago • 4 comments

phyr0s avatar May 12 '17 07:05 phyr0s

private is still valid in Swift 3. You can read the difference between private and fileprivate here: https://cocoacasts.com/what-is-the-difference-between-private-and-fileprivate-in-swift-3/ Why you think, that should be changed? I think the reason why your XCode want to update swift code is that Swift Language Version is not defined in the project.

Taracque avatar May 12 '17 07:05 Taracque

Well Xcode Says that is not updated to Swift 3.

You can create one blank ionic app , add the plugin and cordova build ios. You will see one log saying that is not updated to swift 3

phyr0s avatar May 12 '17 07:05 phyr0s

Please try to do the same thing with your modifications. For me the same thing happens. The ionic build ios displays the following message: “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. So somehow the SWIFT_VERSION flag needs to set up, to fix this.

Taracque avatar May 12 '17 08:05 Taracque

I've added cordova-plugin-add-swift-support to fix this.

nunovieira avatar Jun 20 '17 16:06 nunovieira