Objective-C-RSA icon indicating copy to clipboard operation
Objective-C-RSA copied to clipboard

IOS10 回傳都會nil

Open larry12222 opened this issue 9 years ago • 18 comments

IOS10 回傳都會nil,有沒有解決方法?

larry12222 avatar Sep 14 '16 08:09 larry12222

是啊 我也是 有什么解决办法?

Qinzhao avatar Sep 14 '16 08:09 Qinzhao

我这边也是, 直接是Nil无法进行加密了

bluestonesea avatar Sep 14 '16 09:09 bluestonesea

樓上,連假回老家,我沒有QQ帳號 ,目前也仍然沒有頭緒...也許我該再找別的第三方RSA套件來測試看看了

larry12222 avatar Sep 17 '16 19:09 larry12222

真机测试没有问题。

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.

hai3343 avatar Sep 18 '16 02:09 hai3343

模拟器不行,真机可以。

songzhiming avatar Sep 18 '16 03:09 songzhiming

感謝 這次連假都只有使用模擬器測試 ,一覺醒來看到回覆才知道

larry12222 avatar Sep 18 '16 03:09 larry12222

@songzhiming 那模拟器或者Xcode8怎么设置呢 我前几天发现真机 是支持的。

Qinzhao avatar Sep 18 '16 03:09 Qinzhao

@Qinzhao 我也在找解决方案

songzhiming avatar Sep 19 '16 00:09 songzhiming

有解决方案了么...

SuperGuo751 avatar Sep 19 '16 06:09 SuperGuo751

-34018 这个返回值是-34018的原因吧

SuperGuo751 avatar Sep 19 '16 07:09 SuperGuo751

default 真机测试结果是 peristkey有值 而status为0

SuperGuo751 avatar Sep 19 '16 07:09 SuperGuo751

也許可以看看首頁swift連結篇的作者,他前幾天有改版本,看他說明是有解決34018的問題,不知道是否跟這狀況一樣

larry12222 avatar Sep 19 '16 07:09 larry12222

@ larry12222 并没有改掉 Swift一样的真机没问题 模拟器挂掉

SuperGuo751 avatar Sep 19 '16 08:09 SuperGuo751

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 avatar Sep 19 '16 08:09 btnguyen2k

http://www.cocoachina.com/bbs/read.php?tid=1695854 解决方案.......

SuperGuo751 avatar Sep 19 '16 08:09 SuperGuo751

@btnguyen2k 他的解决方案是对的

SuperGuo751 avatar Sep 19 '16 08:09 SuperGuo751

@SuperGuo751 抱歉我回答錯誤,因該說該作者有貼上面連結說明解決方案,並不是更改版本後解決(在swift版本內的issue可查詢),讓你多測試了一次

larry12222 avatar Sep 19 '16 08:09 larry12222

上面链接中提到:

当调用SecItemAdd()后 status 为-34018 解决方法: 选择TARGETS项目-Capabilities 打开KeychainSharing 选项 即可

ideawu avatar Sep 19 '16 08:09 ideawu