Share Xcode Asset Directory Between Projects

Apple states in its documentation that -

You can share resource directories across multiple projects in the same workspace.

I have a project in a workspace with multiple targets and another project in the same workspace that I want to use to share this directory with all the targets of its neighboring project.

SharedProject (base)

- AssetsCatalog

MainProject

- Target1

- Target2

- etc.

Has anyone been able to do this and help?

+3


source to share


1 answer


I had the same problem as you

I have a workspace with different projects.

My decision:



  • Open the workspace in Xcode
  • Add a new asset catalog to the "newSharedAssets.xcasstes" workspace
  • Now go to projectA and add asset directory by right clicking "Add files to projectA" (add link only)

  • Now go to projectB and add asset directory by right clicking "Add files to projectB" (add link only)

Does it help you?

+1


source







All Articles