Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Kapil Gupta

macrumors newbie
Original poster
Jul 8, 2008
3
0
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
 

Kapil Gupta

macrumors newbie
Original poster
Jul 8, 2008
3
0
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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.