xcodebuild archive not "single-bundle archive"

I'm running into a wall trying to do a command line build from Xcode7. With Xcode 6.4 (and the last build I have that compiles on 6.4) I can successfully run the following commands:


xcodebuild -workspace App.xcworkspace -scheme App SYMROOT="$PWD/build" OBJROOT="$PWD/build" archive -configuration Release -archivePath "build/App.xcarchive"
xcodebuild -exportProvisioningProfile "..." -exportArchive -exportFormat IPA -archivePath "build/App.xcarchive" -exportPath "App.ipa" CODE_SIGN_IDENTITY="..."


With Xcode 7β6, however, the second command fails with the following error:


error: the archive at path '.../App.xcarchive' is not a single-bundle archive
** EXPORT FAILED **


I've checked historical answers and verified that Skip Install is NO for all but the application. I've also recreated the scheme and created a similar sample project, verified that it exports, and copied build settings from it.


Looking inside the archive the only real difference I see between the app built on 6 and the one built on 7 is that the one on 7 has an empty folder called /Products/SEHotQuestionWidget.appex. That said, deleting that folder from the archive still does not allow it to export.


Is there a way to track down the specific cause of this error?

It appears that the offending directory is generated by/because of CocoaPods. I've opened an issue here: https://github.com/CocoaPods/CocoaPods/issues/4087

xcodebuild archive not "single-bundle archive"
 
 
Q