我試圖用一個CommonCrypto應用,曖昧使用在斯威夫特 - 2.2「標」的,的Xcode 7.3.1
所以我從CryptoCoinSwift/SHA256-Swift下載SHA256.swift,並將其添加到我的項目。
在我的單元測試中,我創建了一個函數來測試文件是否好?
這是我在單元測試代碼:
func testCrypto() {
let a: String = "123456"
let b = SHA256.hexStringDigest(a) <- error line
print(b)
}
錯誤線
Ambiguous use of 'hexStringDigest'
誰能告訴我,什麼是錯我的代碼?
謝謝!
非常感謝!!!! – HungCLo