Xcode Clean failed rm:fts_read: No such file or directory.

Discussion in 'Mac Programming' started by Kapil Gupta, Jul 8, 2008.

  1. Kapil Gupta macrumors newbie

    Joined:
    Jul 8, 2008
    #1
    Hi All,

    I have a xcodeproj file which has some dependency on other frameworks. The target have "Copy Files" event ( New build Phase -> New Copy Files Build Phase). This event copies some frameworks into "FrameWorks" destination. It perfectly build and run. But when I clean it, It failed with error message :

    Checking Dependies:
    Removing /(full path)/heloworld_debug.app
    rm: /(full path)/heloworld_debug.app/Contents/FrameWorks//myFrameWork1.framework/Versions/A:Not a directory
    Command /bin/rm failed with exit code 1
    Removing /(full path)/heloworld_debug.app
    rm: /(full path)/heloworld_debug.app/Contents/FrameWorks//myFrameWork2.framework/Versions/A:Not a directory
    rm:fts_read: No Such file or directory.
    Command /bin/rm failed with exit code 1

    When I clean again, it is cleaned properly without any error.

    If I delete the Copy Files from target, the clean work properly.

    Where does the problem lies?

    I am using Xcode 3.0 and Mac OS X version 10.5 “Leopard”

    Thanks in anticipation,
    Kapil
     
  2. Kapil Gupta thread starter macrumors newbie

    Joined:
    Jul 8, 2008
    #2
    Hi All,

    I have built a test sample to demonstrate the issue. I have used dummy source file and carbon framework which is copied to target's Contents\Frameworks\...

    You can download the sample from
    http://rapidshare.com/files/130344541/hellowrld.zip

    Please look into and suggest me what is wrong here.

    Thanks,
    Kapil
     
  3. Kapil Gupta thread starter macrumors newbie

    Joined:
    Jul 8, 2008
    #3
    Hi All,

    I have found out the problem.

    In xcconfig file I am setting
    DEPLOYMENT_LOCATION YES

    INSTALL_PATH and DSTROOT is set so that they are placing the binary in same place as is it produced by building. This is causing a link to be placed in executable package pointing to the executable.
    Contents

    Executable package /
    \ Shortcut to “Executable Package”

    Clean fails due to this linking.

    Thanks,
    Kapil
     

Share This Page