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
Pavel P's solution was
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.
Along the same vein, I was calling "xcodebuild" and passing in SKIP_INSTALL=NO as an option.
e.g.,
xcodebuild clean analyze archive -workspace MyWorkspace.xcworkspace -scheme MyScheme -configuration Debug SKIP_INSTALL=NO -archivePath /MyPath/MyArchive.xcarchive
Removing SKIP_INSTALL=NO in this case fixed my particular situation.