Post

Replies

Boosts

Views

Activity

xcodebuild[56491:10396296] [MT] DVTAssertions: Warning in Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103
When building from command line this is printed for every single swift file being compiled No, I don't appreciate 9000+ lines of spam when building from command line. I've already reported the issue, but I'm making this posts anyway so others searching for the error will see this. Xcode 15.1 when? xcodebuild[56491:10396296] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-22267/IDEFoundation/Provisioning/Capabilities Infrastructure/IDECapabilityQuerySelection.swift:103 Details: createItemModels creation requirements should not create capability item model for a capability item model that already exists. Function: createItemModels(for:itemModelSource:) Thread: <_NSMainThread: 0x600002d10240>{number = 1, name = main} Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
49
37
23k
Sep ’23
AVPlayer+AVPictureInPictureController doesn't automatically start picture-in-picture when backgrounding the app (iOS 14 beta 7)
When creating a custom video player using the AVPlayer+AVPlayerLayer+AVPictureInPictureController in iOS 14 (beta 7) the video does not automatically pip when the app enters the background if player.start() is called from a UIButton action. However if player.start() is called from viewDidLoad this is not a problem. The issue does not reproduce using the AVPlayerViewController which seems to indicate a problem with the AVPictureInPictureController on iOS 14 in general. The issue also did not reproduce on beta 5, but started appearing on beta 6 -- probably a iOS 14 regression. Some sample/pseudo code to illustrate the problem. let player = AVPlayer(url: URL(string: "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4")!) let playerView = PlayerView() playerView.playerLayer.player = player let audioSession = AVAudioSession.sharedInstance() try? audioSession.setCategory(.playback) try? audioSession.setMode(.moviePlayback) try? audioSession.setActive(true) let pictureInPictureController = AVPictureInPictureController(playerLayer: playerView.playerLayer) @IBAction func playButtonTapped(_ sender: Any) { &#9;&#9;player.play() /* the video will not automatically pip when the app is entering the background */ } class PlayerView: UIView { &#9;&#9;override class var layerClass: AnyClass { &#9;&#9;&#9;&#9;return AVPlayerLayer.self &#9;&#9;} &#9;&#9;var playerLayer: AVPlayerLayer! { &#9;&#9;&#9;&#9;return layer as? AVPlayerLayer &#9;&#9;} } Is anyone else struggling with this? Any potential workarounds? I've also filed this as a feedback request (rdar://8620271) but figured I would ask here in the community forums as well.
2
0
2.8k
Sep ’20