Post

Replies

Boosts

Views

Activity

Reply to Determine what exactly causes a certain system library to be loaded
Thank you for the response edford! Indeed, I am aware that the monolith approach we started on many years ago was wrong and it's clear we need to further break down our dependencies after de-spaghettifying our code. Unfortunately the map file didn't help so first I tried to identify and remove anything that belongs to AVKit (AVPlayerViewController, AVPictureInPictureController) but I'd still end up with +[AVSecondScreenController load] being called at one point so the issue was indeed an indirect dependency. I replicated our dependency graph in an empty project and then started experimenting with it, removing stuff that made might have been connected to AVKit, until eventually I found out what the "problem" was, which was QLPreviewController- whenever I had a reference to its initializer anywhere, this would trigger a load of AVKit and the call to the second screen class initializer. Considering my service library which is included from the main app and the extension targets, is there a way to selectively decide at runtime whether to load a framework or not? There isn't one as far as I know. Thanks!
Jan ’22
Reply to Is the Screen Time API completely broken in the betas?
Update 13 Oct 2021 iOS 15.1 (19B5042h) and 15.1 beta 3 (19B5060d): The Screen Time API still appears to be bugged out of its mind. I am not able to consistently list the applications from the child devices on the guardian device. It worked at one point for one child device with iOS 15.1 (19B5042h), meaning I was able to see the apps from the child device on the guardian device, but in my setup I had two child devices and I wasn't able to see and list the apps from the second one. I contacted Apple DTS and this is what they had to say: Q: How would I go about seeing and managing apps from the second device? I also tried factory resetting the second child device and re-authorizing, but the apps never showed up on the parent device, even after cold starting the app. Is there a way to choose between the devices/accounts available to manage via FamilyControls? A: There is no way to choose. All I can suggest is try de-authorizing both child devices and the guardian device, making sure all are enrolled in the same iCloud Family, and the child accounts are under 14 years old, and both have ScreenTime enabled. Make sure the guardian device can see the child devices in ScreenTIme. Then try again. If apps from both devices still don’t show up on the guardian device, then please file a bug report with sysdiagnose logs from all devices, so our engineers have the data they need to start investigating I submitted the bug report FB9700146 with attached sysdiagnose logs from all the devices, but I'm not optimistic about this.
Topic: App & System Services SubTopic: General Tags:
Oct ’21
Reply to Xcode 15 has issues downloading simulators
Hello! You can download the simulator manually from https://download.developer.apple.com/Developer_Tools/iOS_17_Simulator_Runtime/iOS_17_Simulator_Runtime.dmg and then install it using xcrun simctl runtime add iOS_17_Simulator_Runtime.dmg
Replies
Boosts
Views
Activity
Sep ’23
Reply to Determine what exactly causes a certain system library to be loaded
Thank you for the response edford! Indeed, I am aware that the monolith approach we started on many years ago was wrong and it's clear we need to further break down our dependencies after de-spaghettifying our code. Unfortunately the map file didn't help so first I tried to identify and remove anything that belongs to AVKit (AVPlayerViewController, AVPictureInPictureController) but I'd still end up with +[AVSecondScreenController load] being called at one point so the issue was indeed an indirect dependency. I replicated our dependency graph in an empty project and then started experimenting with it, removing stuff that made might have been connected to AVKit, until eventually I found out what the "problem" was, which was QLPreviewController- whenever I had a reference to its initializer anywhere, this would trigger a load of AVKit and the call to the second screen class initializer. Considering my service library which is included from the main app and the extension targets, is there a way to selectively decide at runtime whether to load a framework or not? There isn't one as far as I know. Thanks!
Replies
Boosts
Views
Activity
Jan ’22
Reply to Is the Screen Time API completely broken in the betas?
Update 13 Oct 2021 iOS 15.1 (19B5042h) and 15.1 beta 3 (19B5060d): The Screen Time API still appears to be bugged out of its mind. I am not able to consistently list the applications from the child devices on the guardian device. It worked at one point for one child device with iOS 15.1 (19B5042h), meaning I was able to see the apps from the child device on the guardian device, but in my setup I had two child devices and I wasn't able to see and list the apps from the second one. I contacted Apple DTS and this is what they had to say: Q: How would I go about seeing and managing apps from the second device? I also tried factory resetting the second child device and re-authorizing, but the apps never showed up on the parent device, even after cold starting the app. Is there a way to choose between the devices/accounts available to manage via FamilyControls? A: There is no way to choose. All I can suggest is try de-authorizing both child devices and the guardian device, making sure all are enrolled in the same iCloud Family, and the child accounts are under 14 years old, and both have ScreenTime enabled. Make sure the guardian device can see the child devices in ScreenTIme. Then try again. If apps from both devices still don’t show up on the guardian device, then please file a bug report with sysdiagnose logs from all devices, so our engineers have the data they need to start investigating I submitted the bug report FB9700146 with attached sysdiagnose logs from all the devices, but I'm not optimistic about this.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21