I\'m using command line xcodebuild tool to export ad-hoc distribution ipa file out of my archive like this:
xcodebuild -exportArchive -archivePath /path/Arch
I had the same issue and discovered when looking in KeyChain that the certificate used for signing had been revoked. Archiving worked fine but when we came to -exportArchive we got this cryptic error. HTH.
In my case one of my static libs did not have Skip Install
enabled and this resulted in the same problem. When I set in xcode Skip Install
to Yes
for that project I fixed that problem.