Recent Comments

Open Radar FB10500605: Write to system register S3_6_C15_C1_5 (aka. SPRR_PERM_EL0 ) in pthread_jit_write_protect_np can fail rarely

I managed to come up with a reproducer that also works on macOS 12.4 on a M1 Pro:

Open Radar FB10003729: objc_lookUpClass does not behave as documented


The documentation has been changed in Xcode 14. I've closed the radar.

Now objc_getClass and objc_lookUpClass are both documented to behave identically, and explicit references to the class handler chain have been removed.

By AlexanderMomchilov at June 25, 2022, 1:10 a.m.

Open Radar FB10170943: UIFindInteraction does not clear search textfield


Please find a sample project attached to this response which reproduces the behaviour. Additional comments and exact steps to reproduce are mentioned in the file.

Open Radar FB10170943: UIFindInteraction does not clear search textfield

Apple Feedback

Can you please provide a sample project?

Open Radar FB9969447: List row edit controls dissapear and appear and when dragging sheet

I tested the sample project in Xcode 14b1 and iPhone 13 Simulator running iOS 16 beta and it's worse - the list edit controls don't appear anymore when tapping edit, see attached screenshot (Edit has been tapped and is now showing Done but rows are not showing edit controls).

By indiekiduk at June 15, 2022, 9:48 p.m.

Open Radar FB9816645: Remove auto import or make a setting to be available to disable it.

Please add a setting to disable this feature. It's an inconvenience and has caused build issues in our application when an import was automatically added and went un-noticed.

By mattboran at June 15, 2022, 8:59 p.m.

Open Radar FB9816645: Remove auto import or make a setting to be available to disable it.

Agreed. This is so problematic. I've got a script that runs code generation. When I run it now from an Xcode behavior keyboard shortcut, after the code is generated, somehow Xcode is deciding to add import statements.

It's adding import statements to a generated Package.swift file importing libraries that are noted as dependencies of the Package... now my Package.swift file is invalid whenever I generate it.

If I run my codegen script without having Xcode open, it works just fine. So obnoxious. Please get rid of this terrible addition Apple.

By anthony at June 14, 2022, 6:58 p.m.

Open Radar FB10087624: Strong password UI doesn't work correctly

Video link

Open Radar FB9447729: Xcode 13 ignores GIT proxy settings when resolving SwiftPM packages (and probably for other SCM operations as well).

Can't change the permissions by myself. Can you please share some instructions on how to do it or the way you compiled libgit2.dylib. Thank you in advance

By maxim3124 at June 3, 2022, 7:57 a.m.

Open Radar FB9854851: Repeated use of `is` or `as` operators result causes sporadic crashes

A reply from Apple

is and as? require that the class being checked subclass NSObject or SwiftObject, or at least implement enough standard ObjC methods to have the same basic functionality. In this case, the casting code is trying to use the isSubclassOfClass: method, and crashing because these dynamic classes don't implement that method.

In general, it's important to be extremely careful with classes obtained from objc_getClassList and objc_copyClassList because they could have arbitrary restrictions on how they're used. The only safe way to use these APIs is to manually check their inheritance by using class_getSuperclass in a loop, or check for protocol conformance with class_conformsToProtocol, and ignore any class that doesn't match.

It's also a good idea to avoid making new root classes. In this particular example, specifying NSObject.self as the superclass in the else case solves the problem, although the code is still dangerous as there could be other classes loaded that don't play well with is TestClass.Type.

One more note: it's strongly recommended to use objc_copyClassList over objc_getClassList. It's difficult to use the get method without potentially racing other threads and ending up with a buffer overflow. The copy version handles this problem for you.

By tiarnanmcgrath at June 2, 2022, 4:33 p.m.

Open Radar FB9996377: Contacts Should Include a Pronouns Field


Neopronouns are inherently language- and culture-bound and cannot be used in any useful way.

By idrougge at May 11, 2022, 1:39 p.m.

Open Radar 44932171: Screen Recording Bug

This issue was resolved

By eltonmenezes1996 at May 10, 2022, 7:57 a.m.