title: Xcode 4.5 : Merge two static library ,,, Permission denied
body: <p>I am trying to merge to static library into one library.</p>
  
  <p>Here is the script :</p>
  
  <pre><code>rm -rf ${BUILT_PRODUCTS_DIR}/libAggregate.a
  
  lipo -create "${BUILT_PRODUCTS_DIR}/../${CONFIGURATION}-iphonesimulator/libStatic Library.a"
  "${BUILT_PRODUCTS_DIR}/libStatic Library Device.a" -output "${BUILT_PRODUCTS_DIR}/libAggregate.a"
  </code></pre>
  
  <p>But I am getting this error </p>
  
  <blockquote>
    <p>/Users/Me/Library/Developer/Xcode/DerivedData/Static_Library-bcdrrwpqmxtbqghkamlqbrgjkmfi/Build/Products/Release-iphoneos/libStatic
    Library Device.a: Permission denied</p>
  </blockquote>
  
  <p>How to fix that?</p>