New after update to Xcode 15:
Error processing request from MAD on result: Error Domain=NSOSStatusErrorDomain Code=-128 "Request was canceled"
Here is my code which I call within my GameViewController's viewDidLoad().
present(itsPlayerController!, animated:true) {
self.itsMoviePlayer?.play()
self.itsMovieIsFinished = false
}
Here is my code which I call at various times via playMovie(movieName: "pose"):
func playMovie(movieName: String) {
NotificationCenter.default.addObserver(self, selector: #selector(playerDidFinishPlaying),
name: NSNotification.Name.AVPlayerItemDidPlayToEndTime,
object: itsPlayerController?.player?.currentItem)
present(itsPlayerController!, animated:true) {
self.itsMoviePlayer?.play()
self.itsMovieIsFinished = false
}
} // playMovie
@objc func playerDidFinishPlaying(note: NSNotification) {
self.itsPlayerController?.dismiss(animated:false, completion:nil)
nextScene()
changeScene()
// re-init for next time
setupMovie(theMovieName: "pose")
}
NB:
-
If I do not call playMovie ==> NO ERROR
-
THE PROBLEM = my call to
present
withinplayMovie.
If I totally comment outpresent,
= NO ERROR -
If I comment out just the guts of
present,
other errors are introduced. -
I have checked the syntax of calling
present
and I don't see any error there. -
All the above pertains to the Destination = iPad Mini (6th Generation
-
If the Destination = Apple TV, then we get within
GameViewDidLoad
Unable to simultaneously satisfy constraints.
- For both Destinations, the Game runs OK - it's just these Warnings??
HAALP
Once again a big Shout Out to DTS with whom I opened up an offical TSI.
-
DTS responded that the true culprit is most likely LOG NOISE = Errors or Warnings that do not stop my Code from working. Their effect is superficial, versus substantial.
-
They specifically mentioned several of the posts here by Quinn the Eskimo which essentially conclude that I ignore this LOG NOISE as long as my Code remains 100% functional.
-
DTS also re-credited my TSI Count.
CHEERS!! CHEERS!! CHEERS!!