问题描述:

I am getting error when I run var kSecAttrAccessGroupSwift: NSString = kSecClass.takeRetainedValue() as NSString

The error Description is :

Bitcast requires both operands to be pointer or neither %182 =

bitcast %objc_object* %181 to %PSs9AnyObject_, !dbg !247 Bitcast

requires both operands to be pointer or neither %183 = bitcast

%PSs9AnyObject_ %182 to i8*, !dbg !247 LLVM ERROR: Broken function

found, compilation aborted! Command

/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift

failed with exit code 1

I am running xCode6 beta 2 , what is the reason for this error, is this a bug ?

网友答案:

you must do this!!

var kSecAttrAccessGroupSwift = NSString(format: kSecClass)
相关阅读:
Top