• 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
Can't convert to swift 3 and support <iOS 10?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't convert to swift 3 and support <iOS 10?


  • Subject: Can't convert to swift 3 and support <iOS 10?
  • From: Rick Mann <email@hidden>
  • Date: Fri, 09 Sep 2016 02:19:20 -0700

It sure seems like converting to Swift 3 and iOS 10 forces you to abandon previous OS releases. For example, I have this code:

    var val: AnyObject?
    try getResourceValue(&val, forKey: URLResourceKey.isDirectoryKey)

I get this error:

    'getResourceValue(_:forKey:)' is unavailable: Use
    struct URLResourceValues and URL.setResourceValues(_:)
    instead

Problem is, that only exists on iOS 10.

Am I screwed?

--
Rick Mann
email@hidden



_______________________________________________

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: Can't convert to swift 3 and support <iOS 10?
      • From: Quincey Morris <email@hidden>
    • Re: Can't convert to swift 3 and support <iOS 10?
      • From: Jens Alfke <email@hidden>
  • Prev by Date: How to avoid swift.retain/release
  • Next by Date: Re: How to avoid swift.retain/release
  • Previous by thread: Re: How to avoid swift.retain/release
  • Next by thread: Re: Can't convert to swift 3 and support <iOS 10?
  • Index(es):
    • Date
    • Thread