I have an app which is written in Swift 2.1. Is it possible to build it in Xcode 9?

If not, how do I build it?

closed as off-topic by bmike Jan 25 at 4:11

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about software development are off-topic here, but can be asked on Stack Overflow." – bmike
If this question can be reworded to fit the rules in the help center, please edit the question.


It will not be possible to build Swift 2 code in Xcode 9. You have two options:

  1. Use the compatible version of Xcode (Xcode 7.x.x) and macOS (OS X El Capitan 10.11, or macOS Sierra 10.12) to build the app.

  2. Migrate the codebase to a more recent version of Swift (3.x or 4.x) using the migration assistant built into a recent version of Xcode. Xcode 8 can migrate your code from Swift 2 to Swift 3.

It will not be possible to build Swift 2 code with Xcode 4 as it does not support Swift 2 (doesn't have the compiler).

Not the answer you're looking for? Browse other questions tagged .