Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5951633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:33:55+00:00 2026-05-22T17:33:55+00:00

Xcode 4 builds everything into $HOME/Library/Developer/Xcode/DerivedData/$PROJECT-$UUID , where $UUID is a seemingly random string

  • 0

Xcode 4 builds everything into $HOME/Library/Developer/Xcode/DerivedData/$PROJECT-$UUID, where $UUID is a seemingly random string (it’s not really random, it just looks random).

How can I reliably detect the $PROJECT-$UUID part of the above? I’ve seen a script (https://gist.github.com/949831) that guesses by assuming it is the last modified directory in DerivedData — but that’s not true if my CI machine is building a few projects in parallel.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:33:56+00:00Added an answer on May 22, 2026 at 5:33 pm

    Nobody answered, so I kept looking for ideas until I found the one below, which satisfies my needs. It can be further modified to be even safer.

    1. In Xcode, add a run-script build phase to the target (the main target, if building a few for the same project).
    2. In the script, put this line:

    ln -sf "$BUILD_DIR" BuildDir

    Now, when the target is built a symlink to the project’s DerivedData directory will be created in the project directory.
    If desirable, you can also/instead create BuildDir as a file who’s content is the $BUILD_DIR:

    echo "$BUILD_DIR" > BuildDir

    Then in a script use $(cat BuildDir) to retrieve it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a framework project in XCode and everything builds and looks great except
My Xcode project builds to variations of the same product using two targets. The
I've started a new project in Xcode 3.2.5 where everything is being done in
I upgraded from xcode 4.0 to 4.0.2 today (not sure why, but everything i
In xCode 3 I could drag a folder into the project and say add
I have a XCode which builds and runs under XCode. I would like to
When I build with Xcode (I am porting a large project with tons of
I know how to build an existing Xcode project using xcodebuild, but I also
When I build and analyze my project on XCode, I obtain a 'warning' on
When I build my iPhone project, I get warnings from xcode about a few

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.