Managing visual resources on xcode (link, copy, or both)?

Good evening overflows, I was wondering what would be the best way to manage assets (visual, sound, etc.) in xcode for ios or mac os projects.

I am currently working on a project when image files change all the time (the design is still under development), and I would like to know what is the best way to update all files if they are in the project directory.

So, for example, I have a file called " ic_action_gray_button@2x.png ". This button changes in design, but still has the same name. Is there a magic way to reflect the changes and have it also under the control of the source, without wasting time searching and replacing the file all the time?

This is easy when it comes to 50 assets, but when those assets become 100 or 500, then it becomes difficult to keep up with the changes.

Any tutorial or any guide that will help me in this process?

If my question is not clear, be easy on me, I am not a native speaker of English :)

Yours faithfully,

Sonic555gr

+4
source share
2 answers

You can create a separate folder for your assets inside the project folder. Then you can drag your resource folder into your project in Xcode, select "Create folder links for any added folders" and uncheck "Copy items to target group folder (if necessary)." This should serve your purpose.

+2
source

The way I do this is simply to take 100 - 150 or at least a few assets and paste them into the Finder.

As long as the files have the same name, you just do a rewrite in the Finder inside the folder of your Xcode project.

Any new images that you can add to Xcode, as usual, by dragging and dropping, then select a copy and select a target. Any replacements can be made to Finder after this.

Git will also detect file changes, and you can make changes to your repo. To replace files / assets, there is no need to do this through Xcode and add new images again.

If you use asset directories for your images, it’s just a matter of replacing files inside specific folders, which is tedious, then it’s easier to just select them all inside Xcode, delete them from the directory and from and then just drag them to the asset directory again.

0
source

All Articles