In my main project, a long time ago, I created a new “configuration scheme” called “AppStore” that was duplicated from the default “Release” Xcode configuration. I added the whole Xcode project (framework project) to my project. I was able to @import MyFramework; when "Launch" because both projects had "Debug" as the scheme for the "Launch" application. When I went to the archive, my main project was configured to use the "AppStore" configuration (as opposed to the "Release" default), and my subproject did not have the "AppStore" configuration. As soon as I added the “AppStore” to the “Release” -based subproject, when I went to the archive, it worked perfectly, was completely built, because both projects now had an AppStore scheme, and the main project is the one that says it uses this configuration when archiving, so when I just created it in a sub-project, everything started working as you expected.
source share