Xcode creating generic archive

When I try to archive my project, it doesn't create the iOS app archive, it instead creates a generic xcode archive. The project consists of a custom embedded framework, an extension, cocoapods, and the app. I've already tried setting skip install to yes on everything but the app and extension. I've also tried moving the headers to project insted of public but it gives me an error saying umbrella header not found.


This may seem like a silly question, but did you check you have the correct scheme selected? It's easy to forget to switch back to the app target's scheme before you do the archive, especially when the project is a complex combination of targets.

Yes, my application scheme is selected. This is the one that includes the extension and the app in the archive.

>error saying umbrella header not found.


Any help in this previous thread?


https://forums.developer.apple.com/thread/7528

This kind of issue happend with old versions of cocoapods when having an extension in your app, but I _think_ this is fixed with the latest versions. Haven't seen it for a while. If this is not fixed in the latest versions, look at the cocoapods repository on github (issue 4178), it is the original issue I opened. (I don't post the link here cause otherwise that comment might not show up for multiple days due to the moderator restriction). The thread contains a (pretty silly) workaround where you need to modify the generated Xcode archive. There is also a lot of discussion in that thread that may help.

Xcode creating generic archive
 
 
Q