Opening Xcode Projects -- **Hidden files permanently and forcefully hidden**

As you can see here:


...I have a hidden folder. The title is simply Passphrase. There is no "." at the beginning and there seems to be no way to unhide that folder. The way this came about was that I was simply programming in Xcode and then when I went to run the project, it immediately failed with some cryptic error message that I didn't write down or copy (mistake #1). I've faced similar problems before, so I first thought to just close Xcode and reopen it.


When I went to reopen the xcode project, it immediately crashed and now won't let me in. I eventually figured out that the problem was that Xcode somehow hid the folder that had all of the files to the project, ie storyboard files, assets, view controllers.


I'm not sure what caused it, as I was simply coding some regular code. The only thing that I can think of that might have caused it was that I changed the plist file of my project to include authorization to use the camera and photo library, which I did after following a guidebook like this one (except it was for iOS 14. I was programming the app to be used for iOS 16+, so maybe that was part of the issue?). Every other file in the folder for the xcode project seemed untouched.


I also used ls -al to show all of the files in the folder and it found only the shown files, the hidden passphrase folder, and a .DS_Store file, which I cannot open. I have researched them and it could be the perpetrator, but I have deleted it multiple times and finder every time generates a new one and the file stays hidden. I have found no way to unhide this seemingly super-hidden folder. I have also tried to copy the hidden folder and then paste it, but that only pastes a hidden copy.


I have (through various methods) gotten an unhidden copy of the folder, however, and replaced the corrupted folder in the original xcode project folder, but xcode seems to reject it and still won't open it. I also would like to add that xcode will still open previous versions of the project, and it will still open other projects. I have restarted my computer as well, but I have not deleted and redownloaded Xcode yet.



Thoughts on how to help? I primarily want to be able to open my xcode files again, and secondly would like to know how to solve the problem with my hidden folder. If needed I can send files.

MacBook Pro 13″, macOS 14.2

Posted on Jan 8, 2024 8:26 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 9, 2024 2:52 AM

A file does not have to be a dot file to be hidden. UNIX has the chflags tool that can also use system (schg/noschg) or user (uchg/nouchg) level flags to hide or unhide a file or folder. There is even a C language system call named chflags.


In the Terminal, to see what may have a schg or uchg flag set on it, you would do the following in Terminal assuming you had navigated to the "App Files" parent folder (that is a letter 'O'):


ls -lO


and you may see something like this:

drw-r--r--@   1 xxxxxx  staff  hidden       62 Jul 14  2022 Passphrase



See Also:

man chflags
man 2 chflags


And, you could remove the hidden flag using:

/usr/bin/chflags nouchg ./Passphrase
sudo /usr/bin/chflags noschg ./Passphrase


There is also a recursive flag (-R) supported in chflags if your hidden state descends into files within the Passphrase folder.

Similar questions

2 replies
Question marked as Top-ranking reply

Jan 9, 2024 2:52 AM in response to PHOOT

A file does not have to be a dot file to be hidden. UNIX has the chflags tool that can also use system (schg/noschg) or user (uchg/nouchg) level flags to hide or unhide a file or folder. There is even a C language system call named chflags.


In the Terminal, to see what may have a schg or uchg flag set on it, you would do the following in Terminal assuming you had navigated to the "App Files" parent folder (that is a letter 'O'):


ls -lO


and you may see something like this:

drw-r--r--@   1 xxxxxx  staff  hidden       62 Jul 14  2022 Passphrase



See Also:

man chflags
man 2 chflags


And, you could remove the hidden flag using:

/usr/bin/chflags nouchg ./Passphrase
sudo /usr/bin/chflags noschg ./Passphrase


There is also a recursive flag (-R) supported in chflags if your hidden state descends into files within the Passphrase folder.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Opening Xcode Projects -- **Hidden files permanently and forcefully hidden**

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.