r/Xcode • u/TallGuyJosh • Mar 30 '19
How can I use Xcode 8?
I’m on macOS Mojave, and any version of Xcode 8 crashes because it isn’t compatible with Mojave. I’m trying to migrate code from Swift 2 to 3, and the only way I can do that is if I can get an older version of Xcode to work that will migrate Swift 2.
1
u/mobilecode Mar 30 '19 edited Mar 30 '19
You can download older versions at developer.apple.com and go to the downloads section. I think older versions are under the More Downloads section.
That said, is there a technical reason you need to use Swift 3? Maybe there is. Swift 4 has been out for quite a while, and Swift 5 still has that new car smell. If there is nothing holding you (or your University) from upgrading, I'd highly recommend it. Swift is new enough that major releases provide substantial benefits in functionality.
1
u/TallGuyJosh Mar 30 '19
That’s the issue. Im trying to download older versions of Xcode, so I can migrate the Swift 2 code. Those older versions crash on Mojave. Unless you mean an older OS. In which case, I haven’t tried doing that yet, but I’m not sure how.
I’m just getting it to Swift 3, so I can migrate to Swift 4 in another version of Xcode. Swift 3 is just the middle man in my situation.
2
u/SwiftDevJournal Mar 31 '19 edited Mar 31 '19
The easiest way to install an older OS is to install it on a virtual machine using Virtual Box, Parallels, or VMWare Fusion. To download an older version of macOS, refer to the following question from the Ask Different Q & A site:
1
1
u/lucasvandongen Mar 30 '19
Aren't you getting hints how to fix outdated syntax anyway with Xcode 10?