'How do I archive all my schemes in 1 xcarchive in Cocoapods

I have a XCode project that has multiple projects I want to archive into 1 xcarchive. If I run

xcodebuild -project UIComponents.xcodeproj -alltargets archive

It creates the frameworks as expected

./build/BuildDebug-EnvInternal-SignDevelop-iphoneos/Microphone.framework ./build/BuildDebug-EnvInternal-SignDevelop-iphoneos/TapToTalk.framework

But how do I create 1 xcarchive with multiple frameworks?

It seems like it only allows me to do this if I specify 1 schema at a time. I want to be able to host my xcframework in JFrog to be consumed as subpods.

Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source