0

Hi I have inherited an xcode project after a developer left the company. I need to add a new image to an iphone app but when i add the image i get an error:

"error: bad index file sha1 signature fatal: index file corrupt"

I have been looking for a solution to this and found some articles about deleting the 'build' file and this will resolve the issue. But i cannot find this file in the directory or in xcodes project view. Can someone point me the in right direction?

Thanks in advance for any help!

rishi
  • 11,779
  • 4
  • 40
  • 59
user1238321
  • 249
  • 2
  • 7
  • 15
  • 2
    Check - http://stackoverflow.com/questions/1115854/index-file-corrupt – rishi Jun 28 '12 at 10:39
  • Im not a mac guy, so is the command hes talking about done in terminal? – user1238321 Jun 28 '12 at 10:44
  • Yes, you need to do that in terminal. – rishi Jun 28 '12 at 10:45
  • Tried it and got 'not a git repository (or ay of the parent directories): .git – user1238321 Jun 28 '12 at 10:52
  • Stack overflow wont allow me to answer my own question but i got to the answer in the end. The git repository was the issue but i had to view my project on our dev box in windows with the option to see hidden files, eventually i found the index file in the hidden .git foler and deleted it. fix the issue!! thanks rishi – user1238321 Jun 28 '12 at 12:24
  • you can post your answer and accept that, there is no issue in that. – rishi Jun 28 '12 at 12:25

1 Answers1

0

If you want to clean the build folder press on your keyboard option + shift + command + K

Or go to Product(while pressing option key)->clean build folder

Omar Abdelhafith
  • 21,163
  • 5
  • 52
  • 56