title: Terminal MacOS Fastlane/Gym/xcodebuild Error 65: GenerateDSYMFile, dsymutil malloc: pointer being freed was not allocated
body: <p>I'm trying to make an little bash script for automatisation of ipa uploading on itunes. [From Xcode uploading it works fine].<br><br>
  For command:</p>
  
  <pre><code>gym
  </code></pre>
  
  <p>from Fastlane,some projects are uploading fine, others are failing with log: </p>
  
  <pre><code>The following build commands failed:    
  GenerateDSYMFile [...] 
      Exit status: 65
  </code></pre>
  
  <p>In gym logs:</p>
  
  <pre><code>GenerateDSYMFile [...] 
  dsymutil(20223,0x7fff724c3000) malloc: *** error for object 0x610000100000: pointer being freed was not allocated
  *** set a breakpoint in malloc_error_break to debug
  Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil failed with exit code 6 
  </code></pre>
  
  <p>...tried all google solutions....</p>