tvOS package for distribution fails to find valid certificate and valid provision [UE-39501] [Workaround]

anonymous_user_48f2118e
Tue, 29 Nov 2016 04:50:27 +0000
Platform & Builds

Update: [Here is a screencast of the whole process.][1]

Update 2: Discovered a workaround. Scroll down to the “accepted answer” at the bottom of the page.

tvOS distribution packaging is not working at all for me. I managed to workaround the development packaging issues through the [patch + workaround in this answerhub post I started in October][2].

Now I need to package for distribution, and I am having no luck.

My app is named “Topple Town”. The certificate(s), app id(s), and provision(s) are all brand-new, made just for this app. I will list the various things that I have tried thus far.

HERE IS EXACTLY WHAT I HAVE TRIED

This is on a Mac Pro (Late 2013), 10.11.6, Xcode 8.1

All of the certificate/id/provision stuff is done using the web gui of Apple’s “Certificates, Identifiers & Profiles” section of developer.apple.com

1. Generate Production certificate of type App Store and Ad Hoc. You can’t choose it’s name…they auto name it ``, because that’s my name. Type is set to iOS Distribution. I am somewhat concerned that there is nothing tvOS-specific, but there are no options for App Store certificates other than this one that I selected.

2. Generate App ID on Apple’s site: Name: Topple Town, ID com.agileperception.toppletown

3. Create Distribution Provisioning Profile. Name: Topple Town tvOS Distribution Profile, Type: tvOS Distribution, App ID: Topple Town (com.agileperception.toppletown)

4. Delete ALL certificates from Keychain Access and delete ALL provisions on my Mac from ~/Library/MobileDevice/Provisioning Profiles

5. Download the certificate from step #1. In Project Settings > iOS I click Import Certificate and select the downloaded certificate file, which succeeds (see screenshot after step 6)

6. I download the provision from step #3. I click Import Provision and select the downloaded file, which succeeds (see screenshot below)

7. I set Bundle Display Name to Topple Town

8. I set Bundle Name to toppletown

9. I set Bundle Identifier to com.agileperception.toppletown

10. I select File > Package Project > tvOS, which causes an instant error.

…and you get these errors

Here is the full text of the output log from the session: [tvOS_distribution_errors_from_output_log.txt][5]

You can see the certificate and provision getting imported on lines 271-275. Everything after that is from trying to make the package.

So what now?

I have also tried the following variations:

1. Wildcard App ID’s with corresponding Provisioning Profiles that use them.

2. Checking the boxes next to the provision and certificates

3. Upgrading to 4.14.0

4. Building 4.13.2 from source [with this additional patch][6]

Nothing I have tried so far has so much as changed the error message that I get.

Tell me what I should try, and I will dutifully try it! I just want to get my project onto the app store for tvOS!

43 posts - 6 participants