What follows is about tvOS 15 but may also apply to iOS 15.
Our app may display several types of UICollectionView cells and it depends on the content sent by our backend. Prior to tvOS 15, we used to lazily instantiate UICollectionView cell registrations when needed for the first time while building a UICollectionViewDiffableDataSource. Eventually, each cell registration is only instantiated once (or never).
Now tvOS 15 throws an exception when doing so, pretending to prevent the app from creating a new cell registration each time. And it does not care whether it's actually a new cell registration each time or one that is lazily instantiated once.
Here is the exception:
*** Assertion failure in -[UICollectionView dequeueConfiguredReusableCellWithRegistration:forIndexPath:item:], UICollectionView.m:7413
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Attempted to dequeue a cell using a registration that was created inside -collectionView:cellForItemAtIndexPath: or inside a UICollectionViewDiffableDataSource cell provider. Creating a new registration each time a cell is requested will prevent reuse and cause created cells to remain inaccessible in memory for the lifetime of the collection view. Registrations should be created up front and reused. Registration: <UICollectionViewCellRegistration: 0x6000000f8c60>'
I understand the concern but lazy instantiation is a thing and it should not be for forbidden for the sake of best practices that are not related to it. In my humble opinion, this assert should be removed and apps should be allowed to create cell registrations on the fly.
in swiftUI & tvOS 15, when calling the GCController.controllers() to get the list of controllers connected to the apple tv,
import GameController
...
let siriRemoteAsGameController = GCController.controllers().first
the Siri Remote is not registered as the first controller, in fact it is not registered at all !
up until tvOS 15 (14.7 for example) it was working
even if i register for notification the connect event isn't dispatched for the already connected Siri remote
NotificationCenter.default.addObserver(forName: .GCControllerDidConnect, object: nil, queue: .main) { note in
print("GCControllerDidConnect")
if let detectedGCController = note.object as? GCController {
print("Controller Detected")
}
}
GCController.startWirelessControllerDiscovery(completionHandler: {})
i cannot find a change in that area according to Appel's $#itty documentation
any help would be appreciated
Post not yet marked as solved
Hello, I have always used hotspot with my Apple TV but since updating my iPhone 12 to iOS 15 I keep getting an error message that says: “there was a problem connecting to the network. The wifi password you entered is not correct. Try again (-100)”. However, it gives me no option to re-enter a password. I can hotspot my older iPhone SE to the Apple TV fine and have restarted it, reset it, and upgraded the software. I can also connect the hotspot from my iPhone 12 to my iPhone SE fine. I have restarted the iPhone 12, reset network settings, turned everything else on and off and nothing works. How do I stop getting this error message on my Apple TV?
Post not yet marked as solved
How do you re-pair remote for Apple TV
Post not yet marked as solved
He all!
I have some sound drop issues on my Apple TV.
First of all let me sum up my setup.
I have a XH95 Sony TV, the sound comes from the Sonos ARC, and im watching trough HDMI 1 Apple TV).
When watching Netflix from Apple TV I have sounddrops of 1 second, then the sound comes back. It only happens on the Apple TV, not with the other HDMI devices or the Netflix App on the TV.
thanks all!
Post not yet marked as solved
UIDevice.current.systemName giving both TVOS & APPLE TVOS values for Apple TV devices whereas earlier it used to give TVOS always. Is there any change in this API that it starts giving APPLE TVOS in some cases ?
Post not yet marked as solved
I'm currently living in a hotel and am used to connecting my Apple TV to the hotel's wifi via MAC address spoofing with my Macbook Air due to a sign-in page that I can't access because the Apple TV doesn't have a browser.
I've updated my Macbook Air to Monterrey recently and now can't spoof the MAC address due to the following message "ifconfig: ioctl (SIOCAIFADDR): Can't assign requested address" I get whenever I try to change my Mac's MAC address to the Apple TV's.
Is there a workaround that I could do to connect my Apple TV to the hotel's wifi?
Post not yet marked as solved
Clicking pair shows a code on the Apple TV. Entering that code displays a progress wheel saying “setting up Apple TV” then instead of the Apple TV being setup “PAIR”shows again allowing you to do the setup over and over without being able to use the Apple TV for development. The device loops on the registration process never allowing it to actually be prepared. This happens on all 4 of my Apple TV 4K Second Generations. I have filed a bug with the feedback assistant. I’m just wondering did anyone find a way to successfully pair / or fix this problem. Without this developing for this platform is nearly impossible. Since the Apple TV’s don’t have a port for direct connection.
I don’t want to factory reset all 4 of my Apple TV’s that all do the same thing. I honestly don’t think that will fix them. This is the exact process I did:
Go to window on Xcode menu bar
Click devices and simulators
Go to Remote App and Devices on Apple TV & select it
In the discovered tap area click my Apple TV
Select Pair
Enter code being displayed on Apple TV
Wait for device to be available for development
Device doesn't display as registered and allows you to do the process over & over
I am done with my tvOS app. But I don't have physical Apple TV. However, it is necessary if I want to distribute my app. Currently, Apple TV has already sold out in my country. Can anybody borrow the UDID of Apple TV? 😅
Post not yet marked as solved
Hi,
I am testing a video streaming application in the Apple TV. When I am executing the Automation suite from Xcode, the application is not getting installed in the Apple TV.
The Apple TV Settings "Background App Refresh" is turned ON for the application that I am testing through Automation. Uninstalling the App manually before triggering the automation suite has a drawback as the app gets installed in Production environment by default and I can't change the environment in the course of automation execution. Hence, the app needs to be pre installed in the Apple TV as I would have it in the preferred lower environments if I want to test them in that.
Please suggest a solution.
Post not yet marked as solved
Hello, I have a question... I own a MacBook Pro 14'' M1 MAX and I have a problem with the audio, practically when I try to use AppleTV+ with the built-in audio on my Mac, the audio starts scratching. I don't know if it's a Codec problem or something else, is there anyone with my same problem or anyone who can help me? Thank you very much!
Post not yet marked as solved
I am trying to AirPlay video from Firefox browser on iPad to the Apple Tv 4k, it plays fine, but if I pause with the Apple Remote while the ipad’s screen is off, it brings me to the Apple Tv home screen. If i pause while the screen is open, it pauses.
why is this an issue with the screen being off?
Post not yet marked as solved
I'm trying to use the 2nd siri remote as the controller for my app, however I have encountered several problems.
For the 1st siri remote, I can get the raw data of the trackpad, however the 2nd siri remote does not output the coordinate of the touch points. I want to know how can I get access to the raw data of the trackpad?
I want to know how to get the button events of the remote. I have tried the method introduced in this tutorial https://developer.apple.com/news/?id=33cpm46r, but cannot get the button event.
Post not yet marked as solved
I found that my 2nd generation siri remote does not work properly with the apple tv simulator. The central button and the back button works, but the 4 directional buttons and the sliding gestures do not work. However my 1st generation siri remote work normally. Does anyone know what the problem is? Thanks in advance.
Post not yet marked as solved
I can see that many… “many” people have been experiencing the same problem and frustration. Is there any feedback when apple is going to fix this? Or do we all have to throw out our older Apple TV models? Thanks sp
Note I have an iPhone 12…
Post not yet marked as solved
Hi all,
I've been using a Robin ProLine Doorbell for almost 1 year now. It allows me to see a live video from my doorbell and start a live conversation with a visitor, right from the Apple Home app. Prior to the launch of Logitech Circle View Doorbell, it was the only doorbell officially supporting HomeKit Secure Video.
My setup:
I'm subscribed to iCloud+ (the 2TB plan), so I've set the Robin ProLine Doorbell to record video when specific motion is detected and store in iCloud. Excellent feature, and I've used it a lot.
I have an Apple TV device with Doorbell Notifications enabled, meaning that is shows a Live video pop-up in the top-right corner of my TV, whenever a visitor rings the doorbell. Great feature as well.
I have a few HomePod mini devices in my home, which all make a Doorbell Chime sound when a visitor rings the doorbell.
And of course, my iPhone and iPad show a notification with a still photo, when a visitor rings the doorbell.
Recently however, not sure since when, I‘ve been unable to see a live video from my doorbell (and start a live conversation) in the Apple Home app, right after a visitor rings the doorbell.
These are the steps to reproduce the problem:
A visitor rings the doorbell.
My HomePod minis all make a chime sound.
My Apple TV shows a pop-up notification (including a live video of the visitor).
My iPhone and iPad show a notification (including a still photo of my visitor).
I open the Apple Home app, on my iPhone, and open the doorbell camera.
After step 5, I expect to see a live video from my doorbell and to be able to start a live conversation with my visitor. However, I always get the same error message. The Apple Home app says:
„Camera not available – Wait until someone else in this home stops viewing this camera and try again.“
Note that I am the only user in my Home, so no one else is viewing my camera. Also note that the problem does not occur, if I turn off my Apple TV notifications, which includes a live video of my visitor. Therefore, I'm convinced that my Apple TV notification is this „someone else“ that I am asked to wait for, in the error message in the Apple Home app.
I just spoke to Robin support about this problem and here's their reply:
Hi Atli,
HomeKit support for doorbells started with the requirements of two simultaneous video streams. In that time, notifications over AppleTV were not supported, recording was also not introduced. So two people could simultaneously see and talk to a person at the door.
Our Robin doorbell is able to deliver two simultaneous audio/video streams in custom resolutions. We can still do that this day.
Apple introduced a new feature HomeKit Secure Video after this. Enabling this feature automatically use one of these two streams. So only one is left. Recently Apple updated the AppleTV software and introduced the live video preview that is started automatically when someone rings the doorbell. If recording is also enabled, the last available video stream is used for this. To be clear, this is a design decision of Apple, not the companies creating the HomeKit doorbell. So we as hardware and software manufacturer can’t do anything to change this. So unfortunately no firmware will fix this. The fix has to come from Apple in their AppleTV HomeKit implementation. That is the reason why I asked you to talk to Apple support about this.
Best Regards,
So my questions are:
Does the Logitech Circle View Doorbell support 3 (or more) continuous video streams; one for iCloud recording, one for Apple TV notification, and one for a Home user to speak to visitor?
Who's to blame for this ***** up? Robin hardware or Apple software?
How (and where) do I report this to Apple?
Post not yet marked as solved
Hi,
I am trying to pair my Apple TV with Xcode in the Devices and Simulators Window. Whenever I pair the device using the six digit pairing code, Xcode places the Apple TV in its ignored devices list. I can delete the Apple TV from the ignored devices list:
defaults delete com.apple.dt.Xcode.plist DVTIgnoredDevices
But repairing always places the device right back on the list.
I have also tried trashing the CoreSimulator folder based upon an older thread with no luck.
No combination of unpairing the ATV, restarting the ATV, restarting the desktop running Xcode, praying to the ATV Gods seems to work.
Any thoughts on how to debug this issue would be most welcome.
Post not yet marked as solved
I'm trying to assist my daughter who is in a university dormitory to connect her Apple TV 4th gen. to the captive wifi network which OS 15.4 beta supports, where you have to input login credentials
The Ipad is paired with bluetooth to the Apple TV. When trying to connect she chooses the option to continue the connection on the Ipad/Iphone but does not receive any prompt on the Ipad to continue.
Anybody able to assist or provide an alternative means of connection.
Her Ipad is connected to the network.
Post not yet marked as solved
Hi,
In the past, I have tried to make an app that reads JSON from a remote server. I tried to use the same steps that are done with an iOS app, without success. I need to know if its even possible and where I would need to look to get this up and running.
Thanks,
Dan Uff
Post not yet marked as solved
I have a problem when developing the application. My app cannot play video when mirroring with apple TV 3rd generation while other generation apple TV can still mirror. Can you explain this to me?