So I know this question has been asked several times before, but none of the other accepted answers solves my problem. I have an Swift/Objective-C Xcode Project that uses CocoaPods. The skip install build setting is set to yes for CocoaPods and no for my main project. When I archive my project, I get a Generic Xcode Archive and when I export the built products to a directory, I see myproject.app and myproject.zip which when I open it has many subfolders inside leading to a derive data folder and another copy of myproject.app.
When I try xcodebuild to export my archive I get the error "not a single bundle archive". Anyone have any idea what is going on?