tvOS is the operating system for Apple TV.

Posts under tvOS tag

111 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

Unable to build tvOS 17.2(Beta version) with webdriverAgent project
Current Behavior I'm working with latest AppleTV 4k upgraded with beta version i.e 17.2 tvOS(real device) , on which we execute some automated tests using appium for some of our in-house app's when i'm trying to build the tvOS webDriverAgent project with below command( running from webdriver agent default project path) it is throwing following error. command : xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner_tvOS -destination 'id=4d61282d6871dd9006c73a8e7e8f20298ed82e00' test response: Ineligible destinations for the "WebDriverAgentRunner_tvOS" scheme: { platform:tvOS, id:4d61282d6871dd9006c73a8e7e8f20298ed82e00, name:Living Room, error:Living Room’s tvOS 17.0 doesn’t match WebDriverAgentRunner_tvOS.xctest’s tvOS 17.2 deployment target. Upgrade Living Room’s tvOS version or lower WebDriverAgentRunner_tvOS.xctest’s deployment target. } Note: I'm able to successfully build the tvos webDriverAgentLib_tvOS and webDriverAgentRunner_tvOS tvOS runner from Xcode, no error for Target devices there i have set it to 17.2 image attached but when i tried to run the command xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner_tvOS -destination 'id=4d61282d6871dd9006c73a8e7e8f20298ed82e00' test, it is complaining about deployment target. Even i tried to set the tvOS deployment target to 17.0 and build the i had below issue which was expected because my AppleTV is deployed with 17.2 version when u tried to run above command by downgrading the target got below response: Response Logs : 2023-11-07 13:25:40.722 xcodebuild[19962:485925] DTDeviceKit: Started connection with 00008020-0011188A1A50003A xcodebuild: error: Unable to find a destination matching the provided destination specifier: { id:4d61282d6871dd9006c73a8e7e8f20298ed82e00 } Available destinations for the "WebDriverAgentRunner_tvOS" scheme: { platform:tvOS, id:dvtdevice-DVTiOSDevicePlaceholder-appletvos:placeholder, name:Any tvOS Device } { platform:tvOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-appletvsimulator:placeholder, name:Any tvOS Simulator Device } Expected Behavior since i'm using all the latest drivers, plugin's, appium , xcode and macos it should build the tvOS webdriverAgent properly. since i'm able to launch the app for iphone with 17.1 os version with the same setup. Environment: and i have the following versions installed on mac, all are almost latest and some are beta version's too. MAC ----SONOMA 14.1 XCODE --- 15.1 beta (15C5042i) Appium --- 2.2.1 CLI version execute-driver-3.0.19 [installed (npm) uiautomator2-2.34.0 [installed (npm)] [Up to date] xcuitest -5.8.1 [installed (npm)] [Up to date] NPM version ---8.15.0 NODE version --v16.17.1 Real Device --AppleTV 4k upgraded with beta version i.e 17.2 tvO Further Information: with this issue, want to know whether tvOS beta version is supported by latest webdriverAgent Project. or do i need to wait for official release of 17.2 as i'm using Beta version
2
0
582
Nov ’23
tvOS 17 padding or frame breaks highlight of Button inside List
Hello, found a issue with tvOS 17. When I use either a frame or padding, the button highlight has no round corners anymore, seems like the left and right margin of buttons is not displayed. Works perfectly fine on tvOS 16. Is this a bug? Any way to fix this? struct ListOfButtons: View { var values = (0...13).map{"item \($0)"} @State var selectedValue: String = "item 0" var body: some View { List(values, id: \.self) { item in Button { selectedValue = item } label: { Text(item) } } .frame(width: 200, height: 900) .padding(40) .background(Color.cyan) } } tvOS 16.4: tvOS 17:
3
0
563
Nov ’23
Config Apple TV programmatically
I have an Apple TV and I would like to choose an specific photo album as screensaver. my current solution is to use remote control API, but it is not reliable given I need to count the "down" the "left" keys and assume where the photo album would be. is there a way to choose the album by name? using API? or deploying some configuration profile? thanks, Hiro
0
0
259
Oct ’23
Changing the video playing in VideoPlayer programmatically
I'm using SwiftUI to play videos. I'm trying to use a NavigationStack to show a list of videos, then when i click on on it goes to a new view to play that video. I see lots of example that have the underlying AVPlayer in a @State or @StateObject, but as soon as I reassign it to a new AVPlayer the VideoPlayer stops working; I just get a black screen. Is there a better way to change the url that VideoPlayer is playing? I'm trying to avoid creating a bunch of VideoPlayer objects ahead of time and having them all in memory, as this might have a large number of videos. More details: App is TVOS 17, using Xcode 15.
1
0
1.3k
Oct ’23
TVOS 17 - Text Field in Alert adds a Button
When adding a textfield to an alert in SwiftUI (as shown below) the behavior changes from TVOS 16 to TVOS 17. In the simulator running TVOS 17, it displays an additional button labeled with the text from inside the textfield when the alert is presented. So, the alert below would have two buttons. One button would be labeled "OK" and run addFunction, and the other is labeled with whatever is in $url when the alert is presented and does nothing. Button { showAlert = true } label: { Image(systemName: "plus") } .alert("Add", isPresented: $showAlert) { Button("OK", action: addFunction) TextField("Enter URL", text: $url) .keyboardType(.URL) }
1
1
638
Oct ’23
[tvOS][XCTest] Detect which keyboard key has focus
I am writing a UI automation test for a view on Apple TV. The view has a numeric input field(TVDigitEntryViewController) which accepts 5 digits password. When the view loads the focus is on key '1' of the numeric apple input keyboard for tvOS. However when I try po pinEntryKeyboard.keys["1"].hasFocus in the debug terminal it says false. Is there a way to find out which keyboard key has focus for tvOS input keyboard? For more context I am adding some debug terminal output here: (lldb) po pinEntryKeyboard.keys ... ... ↪︎Find: Descendants matching type Key Output: { Key, 0x102e4d2f0, {{645.0, 691.5}, {70.0, 80.0}}, label: '1' Key, 0x102e4d410, {{707.0, 699.5}, {54.0, 64.0}}, label: '2' Key, 0x102e4d530, {{761.0, 699.5}, {54.0, 64.0}}, label: '3' Key, 0x102e4d650, {{815.0, 699.5}, {54.0, 64.0}}, label: '4' Key, 0x102e4d770, {{869.0, 699.5}, {54.0, 64.0}}, label: '5' Key, 0x102e4d890, {{923.0, 699.5}, {54.0, 64.0}}, label: '6' Key, 0x102e4d9b0, {{977.0, 699.5}, {54.0, 64.0}}, label: '7' Key, 0x102e4dad0, {{1031.0, 699.5}, {54.0, 64.0}}, label: '8' Key, 0x102e4dbf0, {{1085.0, 699.5}, {54.0, 64.0}}, label: '9' Key, 0x102e4dd10, {{1139.0, 699.5}, {54.0, 64.0}}, label: '0' Key, 0x102e4de30, {{1193.0, 699.5}, {74.0, 64.0}}, identifier: 'delete', label: 'delete' } (lldb) po pinEntryKeyboard.keys["1"] ... ... ↪︎Find: Elements matching predicate '"1" IN identifiers' Output: { Key, 0x1032baa80, {{645.0, 691.5}, {70.0, 80.0}}, label: '1' } (lldb) po pinEntryKeyboard.keys["1"].hasFocus t = 956.09s Find the "1" Key false
0
0
388
Oct ’23
`displayManager.isDisplayCriteriaMatchingEnabled` arbitrary result (no distinction between frame rate and dynamic range)
displayManager.isDisplayCriteriaMatchingEnabled returns true if one (or both) between refresh rate, and dynamic range, is set to match the content in the AppleTV settings. There's no way to make a distinction between them, and only enable one of them accordingly. Looks like Apple failed to change their APIs to me. What am I missing?
0
0
440
Oct ’23
Flutter Support on tvOS application
Hi everyone, We have native tvOS application in OTT domain ,Which is in live To this application we would like to add flutter module, and this flutter module business logic and api's but not any UI,Currently we are in the starting stage and from flutter official document we came to know that there is no official support for tvOS by Flutter. We are working on a hack to have flutter dependencies in Apple TV app,In flutter module we are only having business logic and algorithms but not any UI elements So we would like to will Apple approve an Apple TV application with flutter module in it Thanks Waseem Akram.
1
2
783
Oct ’23
NavigationLinks embedded in a List getting clipped in tvOS
I want to recreate an user experience like in the settings app in tvOS. Therefore I have a HStack with some content on the left side and a List of NavigationLinks on the right side. However a focused link in the list gets clipped on the left side. I tried paddings and spacers and what not, but nothing helped. Is this is a bug or am I missing something? Here is some example code to show the problem: struct ContentView: View { var body: some View { NavigationStack { HStack(spacing: 20) { VStack(alignment: .center) { Image(systemName: "globe") .imageScale(.large) .foregroundStyle(.tint) Text("Hello, world!") } List { ForEach(SomeViewEnum.allCases) { someView in NavigationLink(someView.rawValue, value: someView) } } .navigationDestination(for: SomeViewEnum.self) { someView in Text(someView.rawValue) } } } } } And a screenshot to show the problem:
0
0
419
Oct ’23
Issues Detecting Apple TV's HDR Playback Capability
I've been working with the eligibleforhdrplayback property to determine if HDR playback is supported. However, I've noticed an inconsistency. When the video format switches from HDR to SDR in settings menu on Apple TV, the property still returns true, indicating HDR is playable even when it's not (This seems to contradict what was mentioned around the [20:40] mark of this WWDC video). I've tried using the eligibleForHDRPlaybackDidChangeNotification and even restarted the app, but I still encounter the same issue. Are there alternative approaches to accurately determine if the app can play HDR content on Apple TV?
0
0
424
Oct ’23
100% CPU - Interface Builder for tvOS
Anyone else getting 100% CPU usage when using Interface Builder for tvOS projects on Xcode 15.0? To reproduce, simply create a new project (Obj C or Swift), select "Storyboard interface" and add a blank UIViewController to the storyboard. Note: Observed launchd_sim and PineBoard processes in Mac Activity Monitor app. Processes will stay at 98-100% until project is closed. (No issue with iOS projects.)
2
0
474
Oct ’23
Cloudkit discrepancy between tvOS and iOS
Hi, I have an application that would require sync between iOS and tvOS devices. The cloudkit saving/loading code is exactly the same for both platforms but the data does not seems to be synchronised between the 2 devices. Even when I tried to output the data that was updated, iOS only show the data: CKRecord: 0x123456789> whereas tvOS showed more details like: CKRecord: 0x987654321; recordType=SavedGame, recordID=save_file.dat:(_defaultZone:__defaultOwner__), recordChangeTag=ln2rxsh8, values={ data = "<CKAsset: ??; referenceSignature={length = 21, bytes = 0x??????}, path=~/Library/Caches/save_file.dat, size=8005, UUID=?????, signature={length = 21, bytes = 0x?????????}, wrappedAssetKey=<24 bytes>>"; *I replaced the actual data information with ???? Although both have the exact same uploading code, I am having difficulty synchronising between both devices. Not sure what other settings did I missed out to ensure that both can be synchronised properly. Both are using the same iCloud account and apple account. Would appreciate any help. Thank you.
0
0
350
Oct ’23
tvOS 17 does not show the content of my text (.html) file
In my app I have the option to enable a help screen. This is a new view that simply shows a .html file. It works fine until tvOS 16.1 In tvOS 17.0 the screen is blank. Any ideas? This is how it looks in tvOS 16.1 This is tvOS 17.0 textView.backgroundColor = SKColor.white textView.isScrollEnabled = true textView.clipsToBounds = true textView.layer.cornerRadius = 20.0 textView.textColor = SKColor.black textView.isUserInteractionEnabled = true; textView.isScrollEnabled = true; textView.showsVerticalScrollIndicator = true; textView.bounces = true; textView.panGestureRecognizer.allowedTouchTypes = [NSNumber(value: UITouch.TouchType.indirect.rawValue)] if let htmlPath = Bundle.main.url(forResource: NSLocalizedString("manual", tableName: nil, comment: ""), withExtension: "html") { do { let attributedStringWithHtml:NSAttributedString = try NSAttributedString( url: htmlPath, options: [.documentType: NSAttributedString.DocumentType.html], documentAttributes: nil ) self.textView.attributedText = attributedStringWithHtml } catch { print("Error loading text") } }
1
0
422
May ’24
Apple TV 4k and Xcode pairing issue
I have an Apple TV 4k, and I want to pair Xcode with TV in order to install my developing app. According to this answer, I can pair them on my home network. However, I can't pair them on my company's network. I suppose that the pairing procedure is through MDNS protocol. But our company's network use whitelist strategy for MDNS service IDs. So I don't know what service ID(s) is used for pairing. Can you tell me how to setup network to make pairing work?
0
0
542
Sep ’23
What `partial apply for closure #1 in closure #1 in Double.init<A>(_:)` crash is about?
I give up: I have been investigating this crash that is impacting hugely my product, without finding the cause. Crashlitics shows me that this bug started on a certain date, after I released a new version, but I can't match anything with this crash. Do you have any idea of what this could be caused from? Can you provide an example of code that could be generating this crash? Thank you 🙏🏻 Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000686d303ed870 0 libswiftCore.dylib _swift_release_dealloc + 32 1 libswiftCore.dylib bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 136 2 AppName <compiler-generated> - Line 4309475464 partial apply for closure #1 in closure #1 in Double.init<A>(_:) + 4309475464 3 libswiftCore.dylib _swift_release_dealloc + 56 4 libswiftCore.dylib bool swift::RefCounts<swift::RefCountBitsT<(swift::RefCountInlinedness)1> >::doDecrementSlow<(swift::PerformDeinit)1>(swift::RefCountBitsT<(swift::RefCountInlinedness)1>, unsigned int) + 136 5 libsystem_blocks.dylib _call_dispose_helpers_excp + 48 6 libsystem_blocks.dylib _Block_release + 252 7 libdispatch.dylib _dispatch_client_callout + 20 8 libdispatch.dylib _dispatch_main_queue_drain + 984 9 libdispatch.dylib _dispatch_main_queue_callback_4CF + 44 10 CoreFoundation __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 11 CoreFoundation __CFRunLoopRun + 1996 12 CoreFoundation CFRunLoopRunSpecific + 608 13 GraphicsServices GSEventRunModal + 164 14 UIKitCore -[UIApplication _run] + 888 15 UIKitCore UIApplicationMain + 340 16 AppName main.m - Line 18 main + 18 17 (Missing) From Xcode:
2
0
2.2k
Sep ’23