How to archive/export Framework in Xcode?
Go into your framework and build.
cmd+b
You will find in your products YOUR_FRAMEWORK.framework
Right click on "YourLibrary.framework" -> Show in Finder
Now you can share/import your library.
Attention: Don't link/reference to this path because the framework is stored in Derived Data.
The only thing you should do is build the target,then show Products in finder ,you will see it.
Archive framework
Product -> Archive//orxcodebuild archive
Xcode v12 does not have such problem and when you try to archive a framework Xcode prompt you to corresponding Archives window
Archive
is an action from Scheme
[About] which is competitor for Build
action. Archive
includes Build
with additional logic. For example Archive
is used for XCFramework
[Example] which additionally can contains .dSYM
and .BCSymbolMap
files
For usual purposes you can just use Build
action, it creates a corresponding .framework
file in a Build location
[About]