ideawu / Objective-C-RSA

Doing RSA encryption and decryption with Objective-C on iOS
http://www.ideawu.com/blog/post/132.html
Other
1.15k stars 280 forks source link

IOS10 回傳都會nil #29

Open larry12222 opened 8 years ago

larry12222 commented 8 years ago

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

Qinzhao commented 8 years ago

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

bluestonesea commented 8 years ago

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

larry12222 commented 8 years ago

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

hai3343 commented 8 years ago

真机测试没有问题。

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 commented 8 years ago

模拟器不行,真机可以。

larry12222 commented 8 years ago

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

Qinzhao commented 8 years ago

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

songzhiming commented 8 years ago

@Qinzhao 我也在找解决方案

SuperGuo751 commented 8 years ago

有解决方案了么...

SuperGuo751 commented 8 years ago

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

SuperGuo751 commented 8 years ago

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

larry12222 commented 8 years ago

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

SuperGuo751 commented 8 years ago

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

btnguyen2k commented 8 years ago

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

SuperGuo751 commented 8 years ago

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

SuperGuo751 commented 8 years ago

@btnguyen2k 他的解决方案是对的

larry12222 commented 8 years ago

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

ideawu commented 8 years ago

上面链接中提到:

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