How to build a release version of an iOS framework in Xcode? How to build a release version of an iOS framework in Xcode? xcode xcode

How to build a release version of an iOS framework in Xcode?


To get a release build, you need to change your scheme settings:

enter image description hereAlternatively, create a new scheme for release builds.

Ensure you have a device selected. Not the simulator.

enter image description here

Build your project and you should see that it gets added to this location:(Click the arrow to navigate there in finder)enter image description here

And after drilling down, you should be able to find the release folder with your release framework inside.enter image description here


This works for me:

Select your framework target then click Product -> Archive. If organizer window does not pop up after successful build of your framework then go to "Build Settings" of your framework target, look for the option "Skip Install" and change it to "No" (and after that Archive again).


When you add the framework to your other Xcode project then you have to add "$(BUILT_PRODUCTS_DIR)" to Build Settings -> Framework Search Paths.This will create Debug when you run project (with Debug) and will create Release version when you archive project.The archive doesn't will create Release version under Products dir but will create Release in "Intermediates.noindex" folder.