I am having an issue with signing and provisioning a Vision OS app. I have an iOS app and a VisionOS app. Everything works fine on the iOS but having issues with the VisionOS.
First, I am having issues with xcodebuild -exportArchive. When I run it on an archive of my VisionOS app I get
** EXPORT FAILED **
error: exportArchive No Accounts
error: exportArchive No profiles for 'X' were found
Where X is my bundle ID. Meanwhile the iOS app succeeds. This is on a CI machine but I confirmed the distribution provision profile for the vision OS app is installed on the machine. Even if I change the value of the -exportOptionsPlist to the one I used for the iOS project I get this error. Is the issue in the archive itself?
The archives are generated from building in Unity and archiving the xcodeproject with xcodebuild archive
Second, as a workaround I archived a debug ipa on my machine and uploaded this ipa to my CI machine which has the credentials to sign for distribution. I use this script as an example as how to resign the IPA: https://gist.github.com/lodalo/754a35b48d382ae99b25
I remove the CodeSignatures and codesign both .app and UnityFramework.framework. Using this resigned IPA I get this error when I try to upload to app store connect (via Transporter app and altool)
errors: Validation failed (409) Missing or invalid signature. The bundle 'X' at bundle path 'Payload/Y.app' is not signed using an Apple submission certificate.
To verify the signing I used
codesign -dvvv --entitlements -
On both the iOS and VisionOS app and they have the same values under all the Authority fields. Different profiles, of course. So the certificate I used is eligible to upload the iOS app successfully but doesn't work on the VisionOS ipa?
Any help on solving any of these issues would be great so I can upload the vision OS app. Thank you!
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
App Store Connect
Command Line Tools
Code Signing
visionOS