How do I get Images.xcassets under source control?

10,426

Solution 1

This is most likely a bug in Xcode. Please file a bug report with Apple: http://bugreport.apple.com

As a workaround use the "global" commit dialog and select "File View" in the top of the side bar. The relevant files should then show up.

enter image description here

Solution 2

Almost 2 years later, the same functionality exists for Xcode 7.1. The workaround that Matthias offers still allows you to upload assets.xcassets.

Solution 3

Quitting the Xcode & reopening the project again worked!

Solution 4

An alternative could be to try something along the lines of:

cd /to/the/folder/

git ls-files --others --exclude-standard | grep .imageset | xargs git add

git commit...
Share:
10,426
S'pht'Kr
Author by

S'pht'Kr

Frog blast the vent core!

Updated on July 03, 2022

Comments

  • S'pht'Kr
    S'pht'Kr almost 2 years

    So I migrated my AppIcons and LaunchImages to Images.xcassets, which is working fine it seems. But I made some modifications to the launch images, and now I went to commit the changes (I'm using a local-only git repo), and it seems Images.xcassets is not allowed to be committed to source control? Right-clicking on it, all the source control options are greyed out. And it doesn't show up in Xcode 5's new "global" commit dialog.

    Seems ridiculous not to allow the assets file to be committed, am I missing something?

  • S'pht'Kr
    S'pht'Kr over 10 years
    Great! Didn't know that control was available. Of note, now that I've added the directory and subfiles, right-clicking them in the Project Navigator still doesn't let me select any source control options...but, they do show up properly now in the global commit dialog!
  • AFK
    AFK over 8 years
    Sorry, no can do. I'm not able to comment or vote yet because I'm a noob so I can only comment on my own posts (or, at least, that's how I understood the instructions).
  • Adnan Abdollah Zaki
    Adnan Abdollah Zaki over 8 years
    then , just improve your answer .
  • AFK
    AFK over 8 years
    I thought my response was pretty clear - it has been two years since the original post, the problem still exists, and the workaround still provides relief... unlike your comment "please comment it" which means what? absolutely NOTHING! glass houses... stones...
  • suntime
    suntime about 8 years
    2 years later this is still a working solution. Thanks!
  • Josh O'Connor
    Josh O'Connor over 7 years
    Still works! Why hasn't apple fixed this yet. 3 years later and they still havent bothered to fix it...
  • Toydor
    Toydor over 7 years
    How do I display the global commit dialog?