Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode - Copy asset catalogue to another project

Tags:

xcode

I have one Xcode project in which I've completely set up the asset catalogue, and I want to use the same asset catalogue in another project. Is there an easy way to do this?

like image 770
inorganik Avatar asked Mar 07 '14 16:03

inorganik


2 Answers

First create the (empty) asset catalogue in your new project, In your new project click the target, and in the editor under 'App icons' click the button for 'Use asset catalogue'. Make sure the 'also use for launch images' is checked.

Now go out to the finder, and open two windows - one with your new project and one with the source project from which you're copying the asset catalogue.

In the source project, find the Images.xcassets folder. Option-drag it into the new project folder so that it will replace the empty one you just created in Xcode.

like image 176
inorganik Avatar answered Sep 29 '22 10:09

inorganik


It worked for me like this:

Drag the contents of the "Assets.xcassets" folder of the source project into the Assets pane of the new project.

(the only small problem, is that it will create a duplicate set for the app icon, just delete it. Or just thrown away the empty app icon set of the destination project be before importing).

like image 33
Cue Avatar answered Sep 29 '22 10:09

Cue