Swift 1.2 compatibility
Closed this issue · 2 comments
kwhitaker commented
Hello,
I updated XCode to 6.3 today, which includes Swift 1.2, and that seems to have broken Armchair. Several of the errors I think I was able to fix myself (implicitly casting NSString
into String
is no longer allowed, it seems), but I'm getting a few errors which, frankly, I'm not knowledgable enough to fix.
All of these are in Armchair.swift, so far.
public class StandardUserDefaults: ArmchairDefaultsObject
renders "Type StandardUserDefaults does not conform to protocol ArmchairDefaultsObject.private var userDefaultsObject:ArmchairDefaultsObject? = StandardUserDefaults()
renders "StandardUserDefaults is not convertibel to ArmchairDefaultsObject?"let currentVersion = NSBundle.mainBundle().objectForInfoDictionaryKey(kCFBundleVersionKey) as? NSString
renders "Type of expression is ambiguous without more context."
I'm going to do my best to get some answers for these, but I thought it might be helpful for you to know (and maybe you have some quick solutions).
coneybeare commented
Thanks for digging in. I am not going to be able to work on Armchair for a bit, so any PR's would be much appreciated. Thanks for the heads up.
nickoneill commented
Added in #12