Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to archive/export Framework in Xcode?

I have a project with a framework target, but when I archive, the framework does not show up in organizer. I checked apple for documentation, but only found reference for static libraries.

Has anyone experienced this before?

Here are screenshots of my current scheme settings Build Scheme Release Scheme

like image 735
72A12F4E Avatar asked Dec 14 '15 16:12

72A12F4E


People also ask

How do I archive in Xcode?

Archive your App In Xcode with your project open, select the simulator (button near the top of the window next to your project name, typically named as a specific type of iPhone) – change it to Generic iOS Device. Open the Product menu and choose Archive. You will see the archive information. Click Validate App.

How do I archive iOS build in Xcode?

Navigate to your project's settings. Under iOS (or the target you want to build your app for) > Identity, you'll want to increment the Build number. For example, if the Build number was 1, you'll want to set it to 2. Then, in the top menu, under Product, click on Archive.


2 Answers

Go into your framework and build.

cmd+b

You will find in your products YOUR_FRAMEWORK.framework

enter image description here

Right click on "YourLibrary.framework" -> Show in Finder

enter image description here

Now you can share/import your library.

Attention: Don't link/reference to this path because the framework is stored in Derived Data.

like image 168
kuzdu Avatar answered Oct 08 '22 06:10

kuzdu


The only thing you should do is build the target,then show Products in finder ,you will see it.

like image 32
Finder丶Tiwk Avatar answered Oct 08 '22 04:10

Finder丶Tiwk