• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Swift changes in Xcode 8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swift changes in Xcode 8


  • Subject: Re: Swift changes in Xcode 8
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 30 Aug 2016 17:20:52 -0700

> On Aug 30, 2016, at 4:41 PM, Rick Mann <email@hidden> wrote:
>
> Here's the situation. I've got a Swift app that I've developed in Xcode 7/Swift 2.2. Using the legacy compatibility mode, I can try build it in Xcode 8, but unfortunately, a lot of the iOS API has changed (e.g. optionality has changed), requiring me to make breaking source code changes.

Well, that sucks … I assume the iOS 9 SDK isn’t available in Xcode 8? I wonder if anyone’s tried splicing it in from a copy of Xcode 7. (The way that SDKs are hardwired into Xcode is awful, and this is a great example of why.)

There’s some limited conditional compilation (#if) support in Swift, but IIRC you can’t conditionalize on the OS version, only on the version of the Swift language.

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Swift changes in Xcode 8
      • From: Quincey Morris <email@hidden>
References: 
 >Swift changes in Xcode 8 (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Swift changes in Xcode 8
  • Next by Date: NSUserNotificationCenter configuration mysteries
  • Previous by thread: Re: Swift changes in Xcode 8
  • Next by thread: Re: Swift changes in Xcode 8
  • Index(es):
    • Date
    • Thread