Hi Quinn,This issue is occurring for us on iOS 12.4.1. The hotspot config is part of a new feature in our app, so we haven't previously encountered this. Is there still a bug ticket open for this? We haven't seen it yet that I know of for iOS 13, so perhaps more changes were made for iOS 13 in regard to this error?Thanks!-Scot
Post
Replies
Boosts
Views
Activity
Our customers are infrequently experiencing something similar with our app, which also uses the UIPageViewController, when attempting a page turn past the last page:
'NSInvalidArgumentException: The number of view controllers provided (0) doesn't match the number required (1) for the requested transition'
It looks like UIPageViewController sometimes initiates a page transition even though it receives a nil value (no more pages) from the delegate pageViewController:viewControllerAfterViewController: data source message. We haven't been able to reproduce this, and I tried your steps but didn't have any luck. From our Apple crash reports this issue seems to have increased by a factor of 10 for our customers running on iOS 13.3+. Perhaps this is an iOS bug.
I'm seeing a similar issue with AVPlayer as well. Although, in my case when using an iOS 14 simulator the video images are displayed. Below describes what I've found. I filed an Apple bug report on this issue (FB8780527).
Audio is heard, rate state is working, and video info is available, but the video images are not showing during playback on some iOS/iPadOS 14 devices.
This issue is limited to iOS/iPadOS 14+. The issue does not occur on iOS 13 or lower.
It is only reproducible on specific devices (like the iPad Pro 12.9" and iPhone 11 Pro), but not on others (like the iPhone SE and iPhone 6s).
Not all videos have a problem even on the same device, same app and account.
The videos with the problem work elsewhere, such as on a Mac after having pulled the video file from the device, or as stated previously on an iPhone SE with iOS 14.0.1 in the app for the same video, implying there is nothing wrong with the videos.
When running the Xcode 12.0.1 debugger for the app debug configuration there are no errors being output by the Apple AVFoundation framework, or others, when loading, starting and playing the video.
When this issue occurs, the PIP functionality doesn’t work. i.e.: tapping the PIP button does nothing
From adding some NSLogs in my observeValueForKeyPath:ofObject:change:context: method when the AVPlayerItemStatus changes to AVPlayerItemsStausReadyToPlay the AVPlayerItem.presentationSize and AVPlayerLayer.videoRect are at this point CGSizeZero, whereas the AVPlayerLayer.bounds.size is non-zero. e.g.: (640, 306)
Thanks Sachin! That works for me too. Hopefully Apple will have a fix in the next Xcode/SDKs release.
Thanks Ixbndr! I had found that setting my watch app and WatchKit app extension deployment targets to 9.0 solved the issue, but I wanted to support watchOS 8.0. Your solution worked for me.