title: Add file to already packaged .ipa
body: <p>As the title says I'm looking for ways to add an additional file to an already packaged .ipa.
  We need this for an in-house app to add a saml certificate to the ipa so that the user doesn't need username/password any more to log in.</p>
  
  <p>Adding the file on the server when the download request comes from the user isn't the issue, the problem is, that the ipa won't install on the device any more.</p>
  
  <p>I've read in the Apple documentation that you can omit certain files from being signed, so I extracted the ipa using "The Unarchiver" on a Mac, and added the following to the ResourceRules.plist;</p>
  
  <p>saml.txt
          
              omit
              
              weight
              200
          </p>
  
  <p>I also tried omitting all txt files, as described here: <a href="http://lists.apple.com/archives/xcode-users/2011/Apr/msg00277.html" rel="nofollow">http://lists.apple.com/archives/xcode-users/2011/Apr/msg00277.html</a></p>
  
  <p>(^Resources/.*.txt
      omit YES
      weight 200")</p>
  
  <p>First off, I don't really know what rule the weight property plays. I wasn't able to find any documentation about this.</p>
  
  <p>Anyways, I saved the file, compressed the Payload again using the tools OS X provides and renamed it to the required ipa filename.
  Unfortunately, the ipa won't install on a device. It downloads fine, but installation fails.</p>
  
  <p>What am I doing wrong here and how to I overcome this issue?</p>
  
  <p>Since it probably matters, the ipa is generated with Flash Builder, so I don't have all the build settings available that XCode has.</p>
  
  <p>If someone's got a hint, please let me know!
  Cheers!</p>