Ad hoc code signing with SDK

A couple of the sample tvOS do not work in xCode.


DemoBots

TVML Catalog using TVML templates.


Getting a code signing error.


Example app UICatalog... does work though on the Apple TV.


Any ideas how to fix the code signing issues. I have tried to fix it via tha automatic xCode code signing selection but that doesn't fix it.


Thanks,

Al

This project does not compile due to signing identity. You have to set the Code Sigining Identity to "iOS Develper"


In order to set it, on the project tree, select the main project item. Then on the center panel, select "Build Settings" from the top bar options.


Finaly, search for "Code Sigining Identity" and set it to "iOS Develper". If that option does not appear, then go to a working project you have, and see what is set there to use the same setting on the not working project.


Hope this will solve your issue

I just tried to build and run a sample for the first time on the hardware and had the same issue.


Code Sign error: ad hoc code signing not allowed with SDK 'tvOS 9.0'

CodeSign error: code signing is required for product type 'Application' in SDK 'tvOS 9.0'


So does this mean we need to create a provisioning file for any app we want to test on the device?

No you don't need a specific provisioning profile. If you do what sponticelli said then it should work.

I'm getting the same issue when trying to run the DemoBots project on an actual Apple TV.



I am able to create, compile, and run a new tvOS project no problem.



Likewise, the last project I had running also runs fine with the default 'iOS Developer" code signing entity selected in Build Phases.



I'm flailing around trying to find a solution still.

Aha! Go to Targets -> DemoBots (tvOS)


Then I select my Team there and it compiles fine. I was previously only selecting the iOS target, which is why changing code signing had no effect.

Thanks!

(Just add some specificity, as it took me a minute for the following to become obvious)


After selecting Targets -> DemoBots(tvOS) select "Build Settings" for the DemoBots(tvOS) target, and set "iOS Developer" as you "Code Signing Identity".

Ad hoc code signing with SDK
 
 
Q