Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Xcode4 and symlinks in build directory

I apologise if this is not the correct place for this post yet there does not seem to be a dedicated forum for xcode besides behind a pay wall.

First off I have xcode 4.0 Build 4A304a from the MAS, yet the MAS disagrees with me and will not let me install the update; so I do not know if the following is fixed in that version.

If you create a xcode4 workspace and project using the default configurations (for example a C command line application), when you archive it then xcode4 moves the binary and creates a symlink. This seems fine as it is doing what the docs state, in that the build directory contains the binaries or symlinks to them. The problem is the symlink is invalid. By default the symlink is created in
~/Library/Developer/Xcode/DerivedData/SolutionName-SomePostfix/ArchiveIntermedia tes/SolutionName/BuildProductsPath/Release
and points to

~/Library/Developer/Xcode/DerivedData/SolutionName-SomePostfix/ArchiveIntermedia tes/SolutionName/InstallationBuildProductsLocation/usr/local/bin/SolutionName

Yet there is no InstallationBuildProductsLocation so an invalid symlink is created, this does not happen when you skip install as it creates a valid symlink then. Is there a setting missing from the default configurations, is this xcode4 bug or was it an xcode4 bug which is fixed in the updated version.

Thanks

foo, foo

Posted on Apr 10, 2011 6:26 AM

Reply
3 replies

Apr 10, 2011 2:02 PM in response to Llessur999

Thanks for the link Llessur999 but I should not have to do these things and download 4gb of data again. As I see it, currently I have a install of a broken IDE yet from reading that post and other forums it has the potential to give me a broken install of an IDE, I would much rather have the first.

Could people confirm they can replicate the issue with 4.0 or 4.1?

Thanks.

Apr 10, 2011 6:50 PM in response to dmail00

dmail00 wrote:
As I see it, currently I have a install of a broken IDE yet from reading that post and other forums it has the potential to give me a broken install of an IDE, I would much rather have the first.

Based on forum posts here, installing anything will be a fail, since these forums are primarily problem reports. Not sure why you think installing Xcode 4.0.1 would get you more "broken" than you are today with Xcode 4.0. Even if your specific problem is not fixed in 4.0.1, other problems are fixed. If you are concerned the install process will update incorrectly, uninstall 4.0 first. If 4.0.1 is in fact worse (unlikely), you could then uninstall 4.0.1 and re-install 4.0 if you save a copy of the installer. You can also install Xcode 3.2 in a separate folder so you can run both.

Xcode4 and symlinks in build directory

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.