title: Command /usr/bin/codesign failed with exit code 1
body: <p>I am trying to test a app on my phone. I keep getting this error:</p>
  
  <pre><code>Command /usr/bin/codesign failed with exit code 1
  </code></pre>
  
  <p>I have added the Provisioning profile and went through the set up on the apple iPhone portal. </p>
  
  <p>I have been looking at this for a little over an hour and a half and I still can't figure it out.</p>
  
  <p>Any ideas why this isn't working and why I am getting this error? Thanks!</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Here's some information on my build:</p>
  
  <pre><code>CodeSign build/Debug-iphoneos/TableView.app
  cd "/flashPics_iPhone BACKUP 2:27"
  setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
  setenv _CODESIGN_ALLOCATE_ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
  /usr/bin/codesign -f -s "iPhone Developer: Coulton Vento (LVEE98KDSF)" "--resource-rules=/flashPics_iPhone BACKUP 2:27/build/Debug-iphoneos/TableView.app/ResourceRules.plist" --entitlements "/flashPics_iPhone BACKUP 2:27/build/TableView.build/Debug-iphoneos/TableView.build/TableView.xcent" "/flashPics_iPhone BACKUP 2:27/build/Debug-iphoneos/TableView.app"
  
  /flashPics_iPhone BACKUP 2:27/build/Debug-iphoneos/TableView.app: object file format invalid or unsuitable
  Command /usr/bin/codesign failed with exit code 1
  </code></pre>