Post

Replies

Boosts

Views

Activity

Reply to Cannot get symmetric key from keychain
I fact the code is correct. I was simply comment some lines (add the key )between 2 runs to avoid errors in debug mode. By simply modify the code it triggers the non-availability of the key. For example reverse 2 lines : change :  											 kSecAttrKeyClass: kSecAttrKeyClassSymmetric, 											 kSecAttrLabel: name] as [CFString : Any] by 												kSecAttrLabel: name] as [CFString : Any], 												kSecAttrKeyClass: kSecAttrKeyClassSymmetric Which is the same thing. By doing that the key is more available.(no value for kSecValueData) The same thing happened with kSecClassGenericPassword but a prompt ask the keychain password. The problem is that for symmetric key there is no prompt and the key is not accessible (no value for kSecValueData) Loosing the key by that way is too dangerous. How can i get the key stored ? Note: This does not happened with playground. You can modify the code at will and the key is always retrieved. Thank you.
Jun ’20
Reply to Xcode 12 Documentation window closes Xcode
What a calamity, they are at their 12th version of the development tool in 20 years counting project builder and at each version they say: "Improved stability" and we are now at more than 30GB to download because of a crash when we ask for the documentation. Yes to just ask for documentation. We don't count the 3 or 4 tasks in parallel at 100% cpu usage each on machines producing teraflops power just to check the Swift syntax. This is the clearest illustration of Peter's complex. In fact, the more apple earns money the more their products degrade. I know this because I follow them from NeXT computer. And I'm not talking about their disastrous reactivity, drowning in bureaucracy like a mammoth.
Sep ’20
Reply to Bugged Xcode 12.1 download from App Store
Same here After a crash on documentation on xcode 12.0 ( https://developer.apple.com/forums/thread/660490 ) they provided a fix with 12.0.1, and now for downloading it (who must normally be updated automatically like Brave, Opera or other modern applications) it is done @ 1 to 3 KB/s on Apple store. Congratulations Apple ! You can download it here with normal speed (Xcode 12.1 GM seed ) : https://developer.apple.com/download/more
Oct ’20
Reply to NSMutableAttributedString initialisation to prevent crash
These 2 methods : "data(from:documentAttributes:)" and "init(data:options:documentAttributes:)" must be executed on main thread otherwise you have a crash or sometimes random data are inserted in you result (Data or NSAttributedString) (random bug) For macOS too (not only for ios as the apple employee wrongly said). The documentation said execution on main thread must be done for documenType .html. The execution must be done on main thread for plaintext, rtf and html (all documentType) not only html as it is wrongly written. I spent enough time on that issue. This is a bug (10.15.7 catalina, xcode 12.2)
Dec ’20