Post

Replies

Boosts

Views

Activity

Reply to AVPlayer+AVPictureInPictureController doesn't automatically start picture-in-picture when backgrounding the app (iOS 14 beta 7)
We have determined the root cause of the problems AVAudioSession.sharedInstance().setActive(true) must be called before the AVPictureInPictureController is initialised. The frame size for the AVPlayerLayer must have a aspect ratio no greater than 16/9 (filed as a separate bug, rdar//8689203) I hope this will be useful information to others experiencing similar issues. While both of these issues seems intentional by Apple, these side effects need to be documented or trigger proper asserts and/or log statements so developers can solve the issues on their end.
Sep ’20
Reply to How to use a freestanding macro with OSLog
eskimo you must never have written a real app lol. You can't wrap the system log at all right now, because if you do the callsite info will be of the code that wrapped the log statement. Which means in Xcode 15 you have to pick between getting the log integration or a functional logger where you can store things in files so users can send you bug reports with logs from their devices, etc. The complete oversight in structured logging in Xcode 15 / iOS 17 is baffling. It's like Apple never heard of logging to a file before.
Oct ’23