How to tell Xcode to forget file

  • Hi,
    I am loosing my mind here.

    I have a project. It was under git control. When I tried to compile it failed. I noticed there was a wrong file added for iOS, the project was Xcode. I removed the file. It now did compile but warned, now over the absence of this file. I tried everything to get this removed in git, it continued to complain, git wouldn't allow me to delete the file, fatal error, path blablabla. Since this was so utterly senseless and after a day I ended up creating a project from scratch. I added the folder formerly under git control. The folder with the wrong file wasn't even in there when looking at it in the finder, the new project in Xcode had no git activated. STILL it complains about the missing file. Just to make sure, when I write I tried everything, I mean everything, I must have cleaned all targets and so on a hundred times to the point where Xcode crashed trying to clean the clean.

    Please, can someone tell me how to get rid of this file?

    Thanks
    Alex
  • Hi!

    You need to remove file from the project tree in XCode.

    09.02.2012 9:20, Alexander Reichstadt пишет:
    > Hi,
    > I am loosing my mind here.
    >
    > I have a project. It was under git control. When I tried to compile it failed. I noticed there was a wrong file added for iOS, the project was Xcode. I removed the file. It now did compile but warned, now over the absence of this file. I tried everything to get this removed in git, it continued to complain, git wouldn't allow me to delete the file, fatal error, path blablabla. Since this was so utterly senseless and after a day I ended up creating a project from scratch. I added the folder formerly under git control. The folder with the wrong file wasn't even in there when looking at it in the finder, the new project in Xcode had no git activated. STILL it complains about the missing file. Just to make sure, when I write I tried everything, I mean everything, I must have cleaned all targets and so on a hundred times to the point where Xcode crashed trying to clean the clean.
    >
    > Please, can someone tell me how to get rid of this file?
    >
    > Thanks
    > Alex
    >
    >
  • If you mean to select the file and hit the delete-key, this was the first and what seemed to be the most logical to me. It didn't do anything though. The project behaved as if the file would still be included in a target, but it wasn't anywhere.

    Am 09.02.2012 um 08:37 schrieb Vyacheslav Karamov:

    > Hi!
    >
    > You need to remove file from the project tree in XCode.
    >
    >
    > 09.02.2012 9:20, Alexander Reichstadt пишет:
    >> Hi,
    >> I am loosing my mind here.
    >>
    >> I have a project. It was under git control. When I tried to compile it failed. I noticed there was a wrong file added for iOS, the project was Xcode. I removed the file. It now did compile but warned, now over the absence of this file. I tried everything to get this removed in git, it continued to complain, git wouldn't allow me to delete the file, fatal error, path blablabla. Since this was so utterly senseless and after a day I ended up creating a project from scratch. I added the folder formerly under git control. The folder with the wrong file wasn't even in there when looking at it in the finder, the new project in Xcode had no git activated. STILL it complains about the missing file. Just to make sure, when I write I tried everything, I mean everything, I must have cleaned all targets and so on a hundred times to the point where Xcode crashed trying to clean the clean.
    >>
    >> Please, can someone tell me how to get rid of this file?
    >>
    >> Thanks
    >> Alex
    >>
    >>

  • It seems the git repo somewhere stores the project filename outside the source directories. After recreating the project with a new name in the same location it worked. But where does git store its project information? There is no thing like a .git directory like there is for svn.

    Am 09.02.2012 um 08:48 schrieb Alexander Reichstadt:

    > If you mean to select the file and hit the delete-key, this was the first and what seemed to be the most logical to me. It didn't do anything though. The project behaved as if the file would still be included in a target, but it wasn't anywhere.
    >
    >
    > Am 09.02.2012 um 08:37 schrieb Vyacheslav Karamov:
    >
    >> Hi!
    >>
    >> You need to remove file from the project tree in XCode.
    >>
    >>
    >> 09.02.2012 9:20, Alexander Reichstadt пишет:
    >>> Hi,
    >>> I am loosing my mind here.
    >>>
    >>> I have a project. It was under git control. When I tried to compile it failed. I noticed there was a wrong file added for iOS, the project was Xcode. I removed the file. It now did compile but warned, now over the absence of this file. I tried everything to get this removed in git, it continued to complain, git wouldn't allow me to delete the file, fatal error, path blablabla. Since this was so utterly senseless and after a day I ended up creating a project from scratch. I added the folder formerly under git control. The folder with the wrong file wasn't even in there when looking at it in the finder, the new project in Xcode had no git activated. STILL it complains about the missing file. Just to make sure, when I write I tried everything, I mean everything, I must have cleaned all targets and so on a hundred times to the point where Xcode crashed trying to clean the clean.
    >>>
    >>> Please, can someone tell me how to get rid of this file?
    >>>
    >>> Thanks
    >>> Alex
    >>>
    >>>


  • Never mind, I found a docu on git and where to look for .git and found it.

    Thanks

    Am 09.02.2012 um 09:22 schrieb Alexander Reichstadt:

    > It seems the git repo somewhere stores the project filename outside the source directories. After recreating the project with a new name in the same location it worked. But where does git store its project information? There is no thing like a .git directory like there is for svn.
    >
    >
    > Am 09.02.2012 um 08:48 schrieb Alexander Reichstadt:
    >
    >> If you mean to select the file and hit the delete-key, this was the first and what seemed to be the most logical to me. It didn't do anything though. The project behaved as if the file would still be included in a target, but it wasn't anywhere.
    >>
    >>
    >> Am 09.02.2012 um 08:37 schrieb Vyacheslav Karamov:
    >>
    >>> Hi!
    >>>
    >>> You need to remove file from the project tree in XCode.
    >>>
    >>>
    >>> 09.02.2012 9:20, Alexander Reichstadt пишет:
    >>>> Hi,
    >>>> I am loosing my mind here.
    >>>>
    >>>> I have a project. It was under git control. When I tried to compile it failed. I noticed there was a wrong file added for iOS, the project was Xcode. I removed the file. It now did compile but warned, now over the absence of this file. I tried everything to get this removed in git, it continued to complain, git wouldn't allow me to delete the file, fatal error, path blablabla. Since this was so utterly senseless and after a day I ended up creating a project from scratch. I added the folder formerly under git control. The folder with the wrong file wasn't even in there when looking at it in the finder, the new project in Xcode had no git activated. STILL it complains about the missing file. Just to make sure, when I write I tried everything, I mean everything, I must have cleaned all targets and so on a hundred times to the point where Xcode crashed trying to clean the clean.
    >>>>
    >>>> Please, can someone tell me how to get rid of this file?
    >>>>
    >>>> Thanks
    >>>> Alex
    >>>>
    >>>>



previous month february 2012 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29        
Go to today