XCode creates recursive symlinks??
XCode creates recursive symlinks??
- Subject: XCode creates recursive symlinks??
- From: Jonathan del Strother <email@hidden>
- Date: Sun, 22 May 2005 22:26:40 +0100
During building, XCode installs my plugin bundle in the installation
directory, then links the bundle back to the build directory. Sounds
reasonable enough : you get instant access to the product if you're
in the build directory. However, look at the command it uses for the
linking:
SymLink /Users/jon/Developer/GasLight/build/GasLight.bundle "/Users/
jon/Library/iTunes/iTunes Plug-ins/GasLight.bundle"
cd /Users/jon/Developer/GasLight
/bin/ln -sf "/Users/jon/Library/iTunes/iTunes Plug-ins/
GasLight.bundle" /Users/jon/Developer/GasLight/build/GasLight.bundle
Again, reasonable enough - it creates a symlink called
GasLight.bundle in the build dir.
But what happens when it gets run twice? Since GasLight.bundle is
actually a directory, ln interprets the command to mean that it
should create a symlink with the source's name in the directory build/
GasLight.bundle.
Here's the result:
~/Library/iTunes/iTunes Plug-Ins/GasLight.bundle jon$ ls
total 8
drwxr-xr-x 7 jon jon 238 May 22 11:40 Contents/
lrwxr-xr-x 1 jon jon 57 May 22 22:11 GasLight.bundle@ -> /Users/
jon/Library/iTunes/iTunes Plug-ins/GasLight.bundle
GasLight.bundle now has a symlink inside, pointing to itself. Now,
go to XCode and try expanding the GasLight.bundle dropdown in the
'Products' section. XCode cheerfully hangs, presumably trying to
iterate through a neverending series of symlinks.
I'd file a bug report on this, I'm just surprised that I can't find
anything about it. Surely I'm not the first to run into this
problem? Or am I doing something wrong somewhere?
Jon
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden