title: Xcode 10 beta error while building my project?
body: <p>I updated my Xcode to 10 beta after that when I build I am getting bellow error with build failure.. </p>
  
  <p>accessing build database "/Users/n/Library/Developer/Xcode/DerivedData/Build/Intermediates/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location.</p>
  
  <p>I have my script in Build phases like below</p>
  
  <pre><code>  set -e
    if [ -d "${PROJECT_DIR}/Frameworks" ]; then
    rm -rf "${PROJECT_DIR}/Frameworks"
    fi
    mkdir "${PROJECT_DIR}/Frameworks"
    #FRAMEWORKS_PATH="${PROJECT_DIR}/../Frameworks"
    xcodebuild -project 
  
    "${PROJECT_DIR}/../iOS/Frameworks/sdk/SDK.xcodeproj" -scheme 
    "SDKAggregate" -sdk "iphoneos" -configuration "Build"
  
   cp -r 
   ${PROJECT_DIR}/../iOS/Frameworks/sdk/"SDK.framework" 
   "${PROJECT_DIR}/Frameworks"
  </code></pre>
  
  <p>I FOUND THIS LINK 
  [<a href="https://stackoverflow.com/questions/51153525/xcode-10-unable-to-attach-db-error][1]">Xcode 10: unable to attach DB error</a></p>
  
  <p>But my case is different please help me
  thanks in advance..</p>
  
  <p>Note: If I choose New build system then only i am getting this error. 
  For Legacy build system everything works fine.</p>