How do I make .gitignore and .swiftlint.yml visible in Xcode?

Viewed 301

I've got a Swift Package I've created that has a .gitignore file and a .swiftlint.yml config file in it. They are in the repo. They are in the directory. I can drag and drop them into Xcode, but they don't appear in Xcode.

If I do command-shift-. in the "Add Files to MyPackage..." dialog box, I can see the hidden files and add them. However, I can't actually see them in the Project Navigator to edit the files. Right now I have to leave Xcode to edit those config files.

How do I show hidden files in Xcode Project Navigator?

1 Answers

open your terminal

defaults write com.apple.finder AppleShowAllFiles YES
cd ../PATH_TO_GIT_ROOT 
touch .gitignore

Then relaunched Finder and my .gitignore file was visible. Edit per .gitignore documentation

Related