skip to Main Content

I’ve been working on an Xcode project on my desktop, and I was trying to save it to GitHub, so I could access it on the road. I’ve saved it to GitHub before, without issues, and the local Desktop version was working fine. After saving it to GitHub, I tried downloading it on the laptop, to make sure everything was fine, and one file was in red. It doesn’t look like it was saved or even exists. I get a "Build Input File can’t be found" error.

I went back to the Desktop version – that file is there and everything works. I thought, maybe I messed up with GitHub, so I tried to save it to iCloud, and then emailed myself a zip copy – same thing. Every other version, but the desktop version, had that one missing file in red.

I’ve looked at other posts for those with similar problems, and all the answers seem to say the same thing – the file was moved or deleted; however, it is still there on my original desktop working version. Any thoughts as to what is going on or what I should do are welcome.

I’m working on XCode 13.1, on a Mac running iOS 12.1

Follow up – locked files:

As some of you suggested, the file could be locked. It didn’t appear so, and I thought it unlikely, as I don’t know how to lock them. I copied the one file over, added it, and it is running, however, I got this warning when I tried to save and close it:

Locked file warning

I went through the steps to unlock it, and curiously, finder says it is not unlocked. Not locked but I’m getting the warning

Everyone has permission too

Any ideas as to why this might be? I’m stumped. I did try locking and then unlocking it, but no dice. I still get the error I don’t have permission because it is a locked file.

3

Answers


  1. Probably the file is not inside the project folder. This can easily happen with resources such as images and sound files that you copy to the project navigator. The project works fine but it has an external reference to the file. If the project folder is copied, eg zipped, the file is missing because it was not part of what was copied.

    Login or Signup to reply.
  2. This generally occurs when you moved or deleted that file within Finder.

    So try to delete that file from your project in Xcode and then re-add that file to your project folder in Xcode. Then your file would be working fine.

    Login or Signup to reply.
  3. first: get your file from the current full path and cony it to any location on your mac enter image description here
    Second: delete the red file from Xcode
    third: drag file from the new location to Xcode don’t forget to check on copy if you needed 🙂

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search