Re: Swift changes in Xcode 8
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