Post

Replies

Boosts

Views

Activity

Reply to UITabBarController crashes when editing the items
Have the same issue. Made a swizzling class to get the exact view which crashes: - (void)swizzled_addSubview:(UIView *)view { if (view == self) { NSLog(@"🚨 ERROR: Tried to add self (%@) as subview to self. This is illegal and causes a crash.", self); NSLog(@"Backtrace:\n%@", [NSThread callStackSymbols]); //For debugging return here return; } [self swizzled_addSubview:view]; } Which gives a hint which view: UIView+Swizzling.m | 🚨 ERROR: Tried to add self (<_TtCC5UIKit32_UITabBarVisualProvider_FloatingP33_3C6E5A7AE2316B749C88F887559DAAB619SelectedContentView: 0x12cc8c000; frame = (0 0; 360 62); autoresize = W+H; layer = <CALayer: 0x12cc528e0>>) as subview to self. This is illegal and causes a crash. By returning that function if view == self it does not crash any more but has side effects e.g. icon color is black instead of blue in my case... And probably some more. I think there is nothing we could do than waiting for a fix.
Topic: UI Frameworks SubTopic: UIKit
Sep ’25
Reply to App does not launch by data FCM
Hi, i have the same issue, even when the app is running in foreground. According the documentation it should always call: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler { It's working with iOS 15.1 but not with latest 15.2 Beta 3 (and probably also not with Beta 2). The console logs say: dasd Submitted Activity: com.apple.pushLaunch.com.copany.appid:F51673 at priority 5 <private> dasd Adding a launch request (<private>) for application <private> by activity <private> dasd Launch requests for <private>: <private> dasd Daemon Canceling Activities: {( com.apple.pushLaunch.com.copany.appid:7BCCA4 )} dasd CANCELED: com.apple.pushLaunch.com.copany.appid:7BCCA4 at priority 5 <private>! dasd Removing a launch request for application <private> by activity <private> SpringBoard cancelActivities: 1 activities were not found: <private> dasd com.apple.pushLaunch.com.copany.appid:F51673:[ {name: ApplicationPolicy, policyWeight: 50.000, response: {Decision: Absolutely Must Not Proceed, Score: 0.00, Rationale: [{[pushDisallowed]: Required:1.00, Observed:0.00},]}} ], FinalDecision: Absolutely Must Not Proceed} I am aware that the system might cancel starting the app in background but with the app running in foreground it should always call the method in AppDelegate. Any hints are welcome...
Nov ’21