The following code gives a compiler error "Use of undeclared type AutoreleasingUnsafePointer"
var myString: AutoreleasingUnsafePointer<NSString?>
Have I missed a compiler setup step?
Thanks
As stated in the documentation revision history
Updated the Pointers section to reflect that
UnsafePointerhas been replaced withUnsafeMutablePointer,ConstUnsafePointerhas been replaced withUnsafePointer, andAutoreleasingUnsafePointerhas been replaced withAutoreleasingUnsafeMutablePointer.
So you have to use AutoreleasingUnsafeMutablePointer
I was having the same problem, but, using NSError. In new version of Xcode (6.4) and Swift (previous version 2) it's necessary to use:
var err: AutoreleasingUnsafeMutablePointer<NSError?> = nil
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With