Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Share Xcode assets catalog between projects

In their documentation apple states that -

You can share asset catalogs across multiple projects in the same workspace.

I have a project in a workspace with multiple targets and an other project in the same workspace that I want to use to share it's catalog with all the targets of his neighbour project.

SharedProject(Framework)

--AssetsCatalog

MainProject

--Target1

--Target2

--etc

Any one has managed to do so and help ?

like image 280
shannoga Avatar asked Jul 26 '15 13:07

shannoga


1 Answers

I had the same problem.

I have a workspace with different projects.

My solution:

  1. Open your workspace in Xcode
  2. Add a new asset catalog to your workspace "newSharedAssets.xcasstes"
  3. Now go to projectA and add asset catalog by using right-click "Add Files to projectA" (only add as reference)
  4. Now go to projectB and add asset catalog by using right-click "Add Files to projectB" (only add as reference)

Does it help you?

like image 171
nlln Avatar answered Dec 05 '22 08:12

nlln