Skip to content

Add support for tvOS target#336

Merged
mokagio merged 14 commits into
trunkfrom
tvos_support
Apr 24, 2026
Merged

Add support for tvOS target#336
mokagio merged 14 commits into
trunkfrom
tvos_support

Conversation

@SergioEstevao

Copy link
Copy Markdown
Contributor

This PR adds support for the tvOS platform type in order to be used in the future Pocket Casts tvOs app.

Besides adding the necessary platform support and compiler checks it adds a demo app in order to test the sending of the events like the other platforms.

  • I have considered if this change warrants release notes and have added them to the appropriate section in the CHANGELOG.md if necessary.

@mokagio mokagio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took me a while to find the events from the demo app because:

  1. I had forgotten that the app by default doesn't actually send events (shouldSendEvents = false)
  2. I had forgotten Tracks Live View will not show events that are not registered unless you ask it to

But once I figured that out, I was able to see the events. All good.

Comment thread TracksDemo/TracksDemo tvOS/TracksDemo_tvOSApp.swift Outdated
Comment thread Package.swift
let package = Package(
name: "AutomatticTracksiOS",
platforms: [.macOS(.v10_14), .iOS(.v15)],
platforms: [.macOS(.v10_14), .iOS(.v15), .tvOS(.v15)],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is v15 due to Sentry or other dependencies? It's quite old

Image

https://developer.apple.com/documentation/packagedescription/supportedplatform/tvosversion

Having said that, so are the macOS and iOS versions, so maybe we can roll with it and update in a dedicated follow up for all of them.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just kept it inline with the other platforms. To be fair if it's compatible with that version I don't see a reason to push to a more recent version.
Regarding Sentry, will we need to change something to make it use a specific tvOs version of it?

mokagio and others added 7 commits April 23, 2026 10:47
The TracksDemoTests target only contains template app-hosted tests. Running it launches TracksDemo.app during the iOS lane, which adds demo bootstrap requirements without useful coverage.

---

Generated with the help of Codex, https://openai.com/codex

Co-Authored-By: Codex <noreply@openai.com>
CI creates the demo Secrets.swift from the sample file, which leaves the Sentry DSN empty. Use a valid dummy DSN so crash logging initialization does not abort demo app bootstrap.

---

Generated with the help of Codex, https://openai.com/codex

Co-Authored-By: Codex <noreply@openai.com>
Xcode 26.4.1 exposes mismatched SDK versions through xcodebuild and simctl, which breaks fastlane's automatic simulator detection. Pass the simulator destination directly to avoid that fastlane lookup.

---

Generated with the help of Codex, https://openai.com/codex

Co-Authored-By: Codex <noreply@openai.com>
Exercise fastlane simulator detection with the current iPhone simulator instead of bypassing scan with an explicit destination.

---

Generated with the help of Codex CLI, https://openai.com/codex

Co-Authored-By: Codex <noreply@openai.com>
@SergioEstevao

Copy link
Copy Markdown
Contributor Author

@mokagio do you understand why it fails the build-and-test-ios step?

@mokagio mokagio mentioned this pull request Apr 24, 2026
1 task
@mokagio
mokagio enabled auto-merge April 24, 2026 01:48
@mokagio

mokagio commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

@SergioEstevao

@mokagio do you understand why it fails the build-and-test-ios step?

I came here to comment on that, actually. I looked into that yesterday (and I should have left a comment about it, sorry).

Long story short, #338 fixes the issue and targets this PR. I enabled auto-merge, so once that's merged in here, this will land on trunk and we'll be able to publish a new release.

@mokagio mokagio left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for working on this @SergioEstevao

@mokagio
mokagio merged commit 0bdffa2 into trunk Apr 24, 2026
5 checks passed
@mokagio
mokagio deleted the tvos_support branch April 24, 2026 21:32
@mokagio mokagio mentioned this pull request Jun 15, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants