Is it possible to install Swift 4 on El Capitan with Xcode 8?

Hi,

Since I'm still using my old mid-2009 Macbook Pro, which is still working
very well by the way, I'm stucked with macOS El Capitan (10.11.6) with
Xcode 8 and Swift 3. Hence, I also couldn't install Xcode 9 and Swift 4
because they required at least macOS Sierra (10.12).

So, is there any other way to install Swift 4 manually and make it working
with Xcode 8 that I got on my Mac? I know I'll miss some IDE features of
Xcode 9 but it's alright as long as I can use Swift 4 with old SDKs.

Any hints? Thank you.

···

--

Regards,

–Mr Bee

In your position, I’d go to the Downloads part of Swift.org <http://swift.org/&gt; and fetch the latest build of the Swift 4 toolchain for Mac. (It’s still in flux, but it’ll probably be promoted to latest/stable this month.)

Install the toolchain. This adds a Toolchains tab to the Components section of the Preferences window. Select Swift 4.0 Snapshot.

That should do for you, but I don’t have exactly your hardware and OS. When you say you “couldn’t install Xcode 9 and Swift 4,” you may mean that you couldn’t install Swift 4 even separately.

  — F

···

On 2-Sep-2017, at 5:04 AM, Mr Bee via swift-users <swift-users@swift.org> wrote:

Since I'm still using my old mid-2009 Macbook Pro, which is still working very well by the way, I'm stucked with macOS El Capitan (10.11.6) with Xcode 8 and Swift 3. Hence, I also couldn't install Xcode 9 and Swift 4 because they required at least macOS Sierra (10.12).

So, is there any other way to install Swift 4 manually and make it working with Xcode 8 that I got on my Mac? I know I'll miss some IDE features of Xcode 9 but it's alright as long as I can use Swift 4 with old SDKs.

Any hints? Thank you.

Note that you cannot submit a binary to the App Store that was built using a custom toolchain.

Jack

···

On Sep 4, 2017, at 1:47 PM, Fritz Anderson via swift-users <swift-users@swift.org> wrote:

On 2-Sep-2017, at 5:04 AM, Mr Bee via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:

Since I'm still using my old mid-2009 Macbook Pro, which is still working very well by the way, I'm stucked with macOS El Capitan (10.11.6) with Xcode 8 and Swift 3. Hence, I also couldn't install Xcode 9 and Swift 4 because they required at least macOS Sierra (10.12).

So, is there any other way to install Swift 4 manually and make it working with Xcode 8 that I got on my Mac? I know I'll miss some IDE features of Xcode 9 but it's alright as long as I can use Swift 4 with old SDKs.

Any hints? Thank you.

In your position, I’d go to the Downloads part of Swift.org <http://swift.org/&gt; and fetch the latest build of the Swift 4 toolchain for Mac. (It’s still in flux, but it’ll probably be promoted to latest/stable this month.)

Install the toolchain. This adds a Toolchains tab to the Components section of the Preferences window. Select Swift 4.0 Snapshot.

That should do for you, but I don’t have exactly your hardware and OS. When you say you “couldn’t install Xcode 9 and Swift 4,” you may mean that you couldn’t install Swift 4 even separately.

  — F

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

In your position, I’d go to the Downloads part of Swift.org and fetch the
latest build of the Swift 4 toolchain for Mac. (It’s still in flux, but
it’ll probably be promoted to latest/stable this month.)

Install the toolchain. This adds a Toolchains tab to the Components
section of the Preferences window. Select Swift 4.0 Snapshot.

Ok, I'll try it out once Swift 4 is officially released. So, that means
Swift 4 will work on Xcode 8, I suppose.

That should do for you, but I don’t have exactly your hardware and OS.
When you say you “couldn’t install Xcode 9 and Swift 4,” you may mean that
you couldn’t install Swift 4 even separately.

Sorry… I should have said "couldn't install Xcode 9 *with* Swift 4". I've
never installed Swift separately, I used whatever Xcode brought me. But
since Xcode 9 couldn't be installed on my Mac, I got no other options.

Thank you.

···

2017-09-05 3:47 GMT+07:00 Fritz Anderson via swift-users < swift-users@swift.org>:

--

Regards,

–Mr Bee

Unfortunately this will only work for pure Swift apps; the support libraries for Foundation, UIKit, etc are built against the Xcode 9 SDKs and will not work with Xcode 8. I'm afraid you're stuck with Swift 3 if you want to make Cocoa or Cocoa Touch apps, at least officially.

Jordan

···

On Sep 4, 2017, at 20:06, Mr Bee via swift-users <swift-users@swift.org> wrote:

2017-09-05 3:47 GMT+07:00 Fritz Anderson via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>>:

In your position, I’d go to the Downloads part of Swift.org <http://swift.org/&gt; and fetch the latest build of the Swift 4 toolchain for Mac. (It’s still in flux, but it’ll probably be promoted to latest/stable this month.)

Install the toolchain. This adds a Toolchains tab to the Components section of the Preferences window. Select Swift 4.0 Snapshot.

Ok, I'll try it out once Swift 4 is officially released. So, that means Swift 4 will work on Xcode 8, I suppose.

That's very unfortunate indeed. I'm just starting to write a book about
Swift and programming on Apple platforms (not just iOS) since a few weeks
ago, I think it'd be better if I use Swift 4 and XCode 9 as the reference
for the book since it's the newest version with a bunch of new features,
instead of using the about-to-get-old Swift 3 and XCode 8.

Well, I think I need to postpone the book until I got a new Mac (which is
uncertain). Actually, I plan to buy a new Mac from the sale of the book.
So, obviously I need a new strategy. :)

Thank you.

···

2017-09-06 0:20 GMT+07:00 Jordan Rose via swift-users <swift-users@swift.org >:

Unfortunately this will only work for pure Swift apps; the support
libraries for Foundation, UIKit, etc are built against the Xcode 9 SDKs and
will not work with Xcode 8. I'm afraid you're stuck with Swift 3 if you
want to make Cocoa or Cocoa Touch apps, at least officially.

--

Regards,

–Mr Bee