Open larry12222 opened 8 years ago
是啊 我也是 有什么解决办法?
我这边也是, 直接是Nil无法进行加密了
樓上,連假回老家,我沒有QQ帳號 ,目前也仍然沒有頭緒...也許我該再找別的第三方RSA套件來測試看看了
真机测试没有问题。
Sent from Mail Master 在2016年09月18日 03:12,larry12222 写道:
樓上,連假回老家,我沒有QQ帳號 ,目前也仍然沒有頭緒...也許我該再找別的第三方RSA套件來測試看看了
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
模拟器不行,真机可以。
感謝 這次連假都只有使用模擬器測試 ,一覺醒來看到回覆才知道
@songzhiming 那模拟器或者Xcode8怎么设置呢 我前几天发现真机 是支持的。
@Qinzhao 我也在找解决方案
有解决方案了么...
这个返回值是-34018的原因吧
真机测试结果是 peristkey有值 而status为0
也許可以看看首頁swift連結篇的作者,他前幾天有改版本,看他說明是有解決34018的問題,不知道是否跟這狀況一樣
@ larry12222 并没有改掉 Swift一样的真机没问题 模拟器挂掉
If you have error -34018 on simulation, see solution in this link http://stackoverflow.com/questions/38456471/secitemadd-always-returns-error-34018-in-xcode-8-in-ios-10-simulator/38543243#38543243
@btnguyen2k 他的解决方案是对的
@SuperGuo751 抱歉我回答錯誤,因該說該作者有貼上面連結說明解決方案,並不是更改版本後解決(在swift版本內的issue可查詢),讓你多測試了一次
上面链接中提到:
当调用SecItemAdd()后 status 为-34018 解决方法: 选择TARGETS项目-Capabilities 打开KeychainSharing 选项 即可
IOS10 回傳都會nil,有沒有解決方法?