AppSync icon indicating copy to clipboard operation
AppSync copied to clipboard

No tvOS support

Open Stonemage opened this issue 3 years ago • 11 comments

There does not seem to be a way to get the tweak onto tvOS.

When manually trying to install on tvOS 14.6 on an AppleTV 4K (AppleTV6,2), the following error is reported: package architecture (iphoneos-arm) does not match system (appletvos-arm64)

Is there a way to have tvOS support added in future builds? This would really aid in my development work 😊

I am also happy to be a guinea pig and help in testing if this would assist!

Stonemage avatar Sep 06 '21 02:09 Stonemage

I've said this in #84 but I'll repeat it here — I'm not opposed to the idea, but I do not own an Apple TV (nor do I see myself owning one anytime soon), so development would be… difficult, to say the least ;P

(Also, I've just been busy in general lately too.)

akemin-dayo avatar Oct 11 '21 18:10 akemin-dayo

AppSync for AppleTV 4K already exists

Called AppSync Unified on the DiatrusTV Repo

https://parcility.co/package/us.diatr.appsyncunified/diatrustv

kasiimh1 avatar Dec 02 '21 21:12 kasiimh1

AppSync for AppleTV 4K already exists

It's only release 77. That is so old that it is unusable.

Stonemage avatar Dec 02 '21 23:12 Stonemage

Works on latest tvOS 14 no issues!

kasiimh1 avatar Dec 02 '21 23:12 kasiimh1

Works on latest tvOS 14 no issues!

Not in my experience -- I find that whilst you can install v77 just fine, you cannot get any unsigned app to launch afterward.

Stonemage avatar Dec 03 '21 07:12 Stonemage

I do not own an Apple TV, so I unfortunately cannot provide any first-party support for tvOS.

Theoretically, the same installd patches that work on iOS should work on tvOS as well — I'm actually surprised that some of you are having issues — but I really can't really provide any tvOS specific support as I simply lack the hardware, nor do I really intend on spending my money on buying something I don't really plan on using (sorry).

If any developer out there knows what's causing it to break on tvOS, feel free to submit a pull request for review.

EDIT: Wait, I just re-read some of the comments above — "version 77", assuming whatever unofficial tvOS modification of ASU you're using goes by the same version number as mainline ASU, is before the iOS 14 rewrite in version 90.0 / commit cea49293e01527e915703ffe6126031bdc488f0f. That might explain why it doesn't work!

I'll see if I can build a deb from latest source for latest tvOS when I have time. (I've never built tweaks for tvOS before so uh…)

akemin-dayo avatar Dec 03 '21 14:12 akemin-dayo

Hey, I have built version 104 against tvOS sdk 15.4 and am hosting at tv.unbuffer.com. Let me know if this is a problem and I will take it down. I have tried to make it really clear that it is not my project - thanks very much for developing!

I didn't have to change too much - other than the package target and to skip the dialog box at the end of apt dpkg configure (it appears that the AppleTV does not support this so it hangs and installation fails if you don't edit the post-install script to fix)

I can submit a pull request detailing this / including the check if desired.

my version is tested against an AppleTV6,1 (4k gen 1) running 13.3.1 as that's all I have available at the moment. It appears to work, but I can debug further if people have issues installing.

stuartw1 avatar Mar 18 '22 12:03 stuartw1

Have submitted #103 after quite a busy period.

I couldn't find a clean way to build additional copies automatically so provided instructions in the readme to modify the control file to change the target.

Hopefully it is suitable - let me know if you want me to edit it at all :)

stuartw1 avatar May 05 '22 10:05 stuartw1

For those following along, commit SHA1 12314a68c79b752ffd463f3cf5c01caef802d82f addresses some of the issues with ASU on tvOS.

More to come later.

akemin-dayo avatar May 11 '22 05:05 akemin-dayo

@stuartw1

Have submitted #103 after quite a busy period.

I couldn't find a clean way to build additional copies automatically so provided instructions in the readme to modify the control file to change the target.

Hopefully it is suitable - let me know if you want me to edit it at all :)

I tried compiling your fork of ASU but got a posix_spawn error, same with Akemin-dayo's.

Edit: I was able to get it to create a Deb (from Akemin-dayo's repo) and install perfectly fine. The only way I was able to build a Deb was to use the command "make -i package" as that ignore any errors. It may not be the safest idea but it works. I was able to test it by sideloading a Kodi ipa

CodeyMoore avatar Jul 10 '22 05:07 CodeyMoore

@CodeyMoore

Chances are you are probably trying to use the official SDK rather than a patched one. One of the config files blocks posix_spawn on some devices like a watch or a TV, but there is no technical reason for doing so. The jailbroken OS and hardware still support it.

You need to use a patched SDK. You can grep -r for the POSIX spawn function and modify it yourself (you will probably need to copy Private Frameworks in too), though chances are it is easier to just download theos from GitHub and build it according to the documentation, making sure to use appletvos / tvos etc. whenever they use iphoneos / ios. https://github.com/theos/theos

Hopefully this makes sense. I am currently traveling so can't give full / specific instructions but could try to when I am back at my dev workstation if needed.

stuartw1 avatar Jul 10 '22 08:07 stuartw1