Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tried compiling for tvOS but got posix_spawn error #105

Open
CodeyMoore opened this issue Jul 10, 2022 · 1 comment
Open

Tried compiling for tvOS but got posix_spawn error #105

CodeyMoore opened this issue Jul 10, 2022 · 1 comment

Comments

@CodeyMoore
Copy link

CodeyMoore commented Jul 10, 2022

Hi,

I tried compiling ASU for tvOS but unfortunately I got this error

pkg-actions.m:31:2: error: 'posix_spawn' is unavailable: not available on tvOS
posix_spawn(&pid, args[0], NULL, NULL, (char* const*)args, NULL);
^
/my/sdk/folder/sdks/AppleTVOS13.4.sdk/usr/include/spawn.h:60:9: note: 'posix_spawn' has been explicitly marked unavailable here
int posix_spawn(pid_t * __restrict, const char * __restrict,
^
1 error generated.

I did fix this issue with my iOS sdks but can't remember where or how I fixed it as it was going back a year or so ago.
if you're able to help that would be greatly appreciated :)

Edit: I was able to get it to create a Deb 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

@stuartw1
Copy link

Have you tried compiling with a patched tvOS SDK? The official SDK has some functions banned and has to be modified.

It usually works fine after you remove the function prohibitions or use theos (https://github.com/theos/theos) instead.

Some SDKs and creation instructions for a more up to date one are at https://github.com/theos/sdks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants