Post

Replies

Boosts

Views

Activity

What happened in InterfaceBuilder of Xcode 15????
In an app I'm working on, I have a UINavigationController which has a navigation item in a xib file. I see Left Bar Button Items, Center Item Groups and Right Bar Button Items. Under Right Bar Button Items, I have a UIButton. But, in the interface of the xib file, I don't see it, even if I click on it. Further, I can't add anything to the Left Bar Button Items. In a previous version of Xcode, I had been able to put and edit the UIButton but not anymore? What's going on?
1
0
514
Oct ’23
Crash in UNUserNotification
I'm working on a new application that uses the UNUserNotification framework. I distributed the application to a few testers. One of them reports a crash at launch, occurring in Dispatch queue: com.apple.usernotifications.UNUserNotificationServiceConnection.call-out. All other users report the application working correctly and have reported no crash. The user is using an iMac Retina 5K, 27-inch, from 2017. He's running macOS 13.6 (22G120). The strange part is that he sent me a screenshot showing that my application does not appear under the Notifications of System Settings, which might explain the crash. The relevant thread that crashes is: Thread 12 Crashed:: Dispatch queue: com.apple.usernotifications.UNUserNotificationServiceConnection.call-out 0 libsystem_kernel.dylib 0x7ff810ecd1e2 __pthread_kill + 10 1 libsystem_pthread.dylib 0x7ff810f04ee6 pthread_kill + 263 2 libsystem_c.dylib 0x7ff810e2bb45 abort + 123 3 libc++abi.dylib 0x7ff810ebf282 abort_message + 241 4 libc++abi.dylib 0x7ff810eb13fb demangling_terminate_handler() + 267 5 libobjc.A.dylib 0x7ff810b857ca _objc_terminate() + 96 6 libc++abi.dylib 0x7ff810ebe6db std::__terminate(void (*)()) + 6 7 libc++abi.dylib 0x7ff810ebe696 std::terminate() + 54 8 libdispatch.dylib 0x7ff810d64047 _dispatch_client_callout + 28 9 libdispatch.dylib 0x7ff810d6a200 _dispatch_lane_serial_drain + 769 10 libdispatch.dylib 0x7ff810d6ad6c _dispatch_lane_invoke + 417 11 libdispatch.dylib 0x7ff810d753fc _dispatch_workloop_worker_thread + 765 12 libsystem_pthread.dylib 0x7ff810f01c55 _pthread_wqthread + 327 13 libsystem_pthread.dylib 0x7ff810f00bbf start_wqthread + 15 Does anyone have any idea of what's happening?
1
2
855
Oct ’23
BGBackgroundTask with or without background-based URLSession?
I'm working on an iOS app. I need to keep refreshing some data even when the app is in the background. Unfortunately, the older (and simpler) method to have tasks running in the background are deprecated. So I've been looking at what is the new standard, which seems to be stuff from the BGBackgroundTask framework. I've also been looking at URLSession configured for background because that's what I use in a previous project. In that other project, I've been using a dataTask because I'm not really downloading files, just data from a web server. The background-based URLSession seems easier to setup than all the paraphernalia required to get the background tasks to work. However, I've been a bit worried when I read this bit from the doc: For long-running and nonurgent transfers, you can create tasks that run in the background. These tasks continue to run even when your app is suspended, allowing your app to access the downloaded file when the app is resumed. That seems good but, what if after downloading, I need to schedule another download? So, it seems to me that I would still need to use the BGBackgroundTask framework to kick a download. Am I right in my assumption? Thanks in advance for any pointer or info!
0
0
337
Sep ’21