Kodi Community Forum
TvOS Kodi Build - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: iOS & tvOS (https://forum.kodi.tv/forumdisplay.php?fid=137)
+---- Thread: TvOS Kodi Build (/showthread.php?tid=312805)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45


RE: TvOS Kodi Build - phunkyfish - 2019-04-11

Have you tried running the deb target?

PM me snapshot of your general and capabilities tabs and I’ll check it against mine.

I’ll do a fresh build tomorrow and document the exact steps I use too.


RE: TvOS Kodi Build - kambala - 2019-04-11

(2019-04-10, 21:52)phunkyfish Wrote: You just need to add the keychain sharing capabilities to the target. Click the Capabilities tab, and enable keychain sharing for your bundle ID. 
where did you get this from? I didn't do it and I can start the app on ATV just fine.

@sy6sy2 try this:
 
(2019-04-09, 18:54)kambala Wrote: Sometimes I have that error as well. Try this: Show Contents of kodi.app, delete directory _CodeSignature and build.

maybe also delete file embedded.provisioning


RE: TvOS Kodi Build - sy6sy2 - 2019-04-11

Hi,

Thank you, I am able to launch it by deleting both _CodeSignature and embedded.provisionning.

But it works only one time (I have to deletes both elements at each run else the error come back Undecided)


RE: TvOS Kodi Build - phunkyfish - 2019-04-11

Here is the set of steps I use:
  1. Create a new kodi-build directory
  2. cd kodi-build
  3. /Users/Shared/xbmc-depends/x86_64-darwin18.5.0-native/bin/cmake -G Xcode -DCMAKE_TOOLCHAIN_FILE=/Users/Shared/xbmc-depends/appletvos12.2_arm64-target-debug/share/Toolchain.cmake ../kodi
  4. Open the new xcode project file
  5. Select the kodi target (not ALL_BUILD), and the device as my paired apple tv 4k
  6. Under the general tab set a bunde identifier, manage signing automatically and set a development team
  7. Under capabilities enable key chain sharing and check the bundle identifier is the same
  8. Hit Run!



RE: TvOS Kodi Build - phunkyfish - 2019-04-11

@sy6sy2 can you go to Windows->Devices and Simulators and remove any app on the appletv before the steps above?

I'm rerunning the steps above without enabling key signing under capabilities.


RE: TvOS Kodi Build - phunkyfish - 2019-04-11

(2019-04-11, 02:03)kambala Wrote:
(2019-04-10, 21:52)phunkyfish Wrote: You just need to add the keychain sharing capabilities to the target. Click the Capabilities tab, and enable keychain sharing for your bundle ID. 
where did you get this from? I didn't do it and I can start the app on ATV just fine. 

Googled app not verified, after reading numerous pages it mentioned entitlements which led me to enabling Key sharing. This could just have been lucky and something else along the way I tried fixed it. Who knows. The test without it will confirm.


RE: TvOS Kodi Build - sy6sy2 - 2019-04-11

I did the exact same steps except that I build kodi with "Generic tvOS Device" because I haven't my Apple TV at work. Then when I go home I change to my paired Apple TV and hit run.

Also my Apple TV is on 12.1 so I choose 12.1 in deployment target.


The only side loaded app that I have is kodi 17 but with a different Bundle ID and I would like to not remove it because it's my daily Kodi TV app ;-)


RE: TvOS Kodi Build - phunkyfish - 2019-04-11

Ok, so when you’re home try home try to build only the kodi target using the actual device and see what happens.

I just tried without enabling key sharing and it still worked so that appears to be a red herring.

I remember removing something at some point which may have fixed it but I don’t recall exactly what it was.


RE: TvOS Kodi Build - pogar - 2019-04-11

Hi
If needed I can try to help. I have developer certificate (bough it to upload Kodi), Apple TV 4th Gen and Apple TV 4k. So I can test something, but I would need to know which repo/branch I should clone/download and which commands I should run. :-) 
I wouldn't expect that I'm able to contribute more, than testing and report feedback...


RE: TvOS Kodi Build - sy6sy2 - 2019-04-11

Hi pogar,

Glad to see people interested and involved in this project :-D

The current development repo is https://github.com/SylvainCecchetto/xbmc/tree/ATV.

The majority stuff was imported from here https://github.com/Memphiz/xbmc/tree/yab where you can find a working version of Kodi 17 for Apple TV.

You can find the build guide here https://github.com/SylvainCecchetto/xbmc/blob/ATV/docs/README.tvOS.md

Right now Kodi crash on start up, but a least we can build it ;-)


RE: TvOS Kodi Build - pogar - 2019-04-11

thanks :-) I'll try build it later today (CEST )


RE: TvOS Kodi Build - sy6sy2 - 2019-04-11

So, what I did:
1. Delete everything in Kodi-build folder
2. Run Cmake command in order to generate Xcode project
3. Open Xcode Project
4. At the top left, select kodi then select my real Apple TV
5. Set target to 12.1 instead of 12.2
6. In general tab set my bundle Id and my team
7. Enable Keychain sharing
8. Hit run (from here +Xcode start building kodi for the first time)
9. Build successful
10. Copying Kodi on Apple TV
11. Kodi appears on my TV (white screen then black screen with error in Xcode log)
12. Hit Stop in Xcode
13. Try to run again by hitting run
14. Copying on Apple TV
15. Error message...


RE: TvOS Kodi Build - phunkyfish - 2019-04-11

I’m lost, I don’t know why you are having this problem.

Maybe’s its an issue with tvOS 12.1, I really don’t know. Can you upgrade?


RE: TvOS Kodi Build - sy6sy2 - 2019-04-11

I don't know neither.
I will try to delete the app directly from the Apple TV before the "second" Run...

Yes I can upgrade but I would like to stay on 12.1 for a eventual jailbreak :-P

Alternatively I can use the "delete _CodeSignature and embedded.provisioning" hack each time I want to Run kodi on the device until I find the source of this error.


RE: TvOS Kodi Build - phunkyfish - 2019-04-11

So I just built for tvOS using Xcode 9 and tried to deploy. This of course failed as Xcode 9 doesn't support 12.2.

But now I have the same problem you do. Go figure...