Post

Replies

Boosts

Views

Activity

Reply to This is an internal UIKit bug. Ignoring unexpected nonmatching counterpart: (null)
Hello, I think this is indeed a UIKit bug, it popped out in my app with iOS 18, with no previous warning. To give you guys some context, I have a UIKit view controller, a master view; it has rightBarButtonItems and leftBarButtonItems. The detail view is a SwiftUI view hosted in a Hosting controller. In my detail controller I am hiding the navigation bar, and I have a custom button that pops the view controller. WIth iOS 18, if I navigate to the detail and back the app hangs and the crashes. If I remove the leftBarButtonItems from the master, no crash. I did some debugging, the loop is triggered by the navigation popping, it doesn't matter if I trigger it with a closure a notification etc. Reading your indications above I made sure I was not reusing the same UIBarButton item in other nav bars; I am not doing that, in fact this is the only section of my app where I set the leftBarButtonItems. I hope this helps. Davide
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’24
Reply to Xcode export for localization does not generate XLIFF
I will file a bug, but I cannot possibly attach a sample project. I tried to export localization with a vanilla projects, and of course it works as expected. I have 10 targets, some model and manager classes are shared; the bug happen when exporting my main app target, but I don't see how to "reproduce" it in a sample project, we're talking 100s of files here... Do you have any suggestion to narrow the issue down? If I managed to do it it might reproduce the issue in a sample project... I can tell you that the XLOC generation is instant; with my vanilla sample test, although it only contained a single string, it took 10 seconds. So I assume that XLIFF generation is skipped completely... But I get no error. Any debugging tip will be useful. Davide
Jun ’22
Reply to This is an internal UIKit bug. Ignoring unexpected nonmatching counterpart: (null)
Hello, I think this is indeed a UIKit bug, it popped out in my app with iOS 18, with no previous warning. To give you guys some context, I have a UIKit view controller, a master view; it has rightBarButtonItems and leftBarButtonItems. The detail view is a SwiftUI view hosted in a Hosting controller. In my detail controller I am hiding the navigation bar, and I have a custom button that pops the view controller. WIth iOS 18, if I navigate to the detail and back the app hangs and the crashes. If I remove the leftBarButtonItems from the master, no crash. I did some debugging, the loop is triggered by the navigation popping, it doesn't matter if I trigger it with a closure a notification etc. Reading your indications above I made sure I was not reusing the same UIBarButton item in other nav bars; I am not doing that, in fact this is the only section of my app where I set the leftBarButtonItems. I hope this helps. Davide
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’24
Reply to Xcode export for localization does not generate XLIFF
I will file a bug, but I cannot possibly attach a sample project. I tried to export localization with a vanilla projects, and of course it works as expected. I have 10 targets, some model and manager classes are shared; the bug happen when exporting my main app target, but I don't see how to "reproduce" it in a sample project, we're talking 100s of files here... Do you have any suggestion to narrow the issue down? If I managed to do it it might reproduce the issue in a sample project... I can tell you that the XLOC generation is instant; with my vanilla sample test, although it only contained a single string, it took 10 seconds. So I assume that XLIFF generation is skipped completely... But I get no error. Any debugging tip will be useful. Davide
Replies
Boosts
Views
Activity
Jun ’22