Curnelious
Curnelious

Reputation: 1

File disappear - how do i get it back?

I am really nervous , A file on Xcode 9 is somehow turned to be red, and I have a error message saying :

<unknown>:0: error: no such file or directory: '/Users/me/Desktop/PROJECT/code/vin/vins/EditorView.swift'

 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1

As you know if a file is deleted Xcode will not put it on the trash bin, so how would I get it back , assuming I didn't closed Xcode ?

I may deleted it accidentally, although i don't remember doing so and do not have a backup, and its a huge file.

Upvotes: 0

Views: 40

Answers (2)

Curnelious
Curnelious

Reputation: 1

What happened is that I changed the main folder name that contains the plist and some other files. The system couldn't find the new path. I changed it back to the previous name and it worked.

Upvotes: 0

vadian
vadian

Reputation: 285039

  • Select the (red) file in the Project Navigator
  • Press ⌥⌘1
  • In the Identity and Type Inspector click on the small folder icon below the Location popup menu and reassign the file.

Upvotes: 2

Related Questions