Reputation: 2489
I have a question,
can I write a library like Cocoapods pod in Swift 4 and Xcode 9 and then use it in older projects, written in Swift 3 or earlier?
E.g. it would have a class that uses the new Codable
protocol. Would that class be working in older projects?
Thanks for your help.
Upvotes: 0
Views: 322
Reputation: 559
As a rule, no. Xcode 9 will let you go back to Swift 3.2, but not 3.1. If you need earlier Swift compatibility, you'll have to re-download Xcode 8.3.3 which is available at https://developer.apple.com/download/
Good luck!
Upvotes: 1