Re-signing IPA (IPhone)

Source: Internet
Author: User

Tip: Temporarily unavailable, Enterprise certificate abuse

iOS Enterprise Certificate IPA re-signed Publishing

1. Application Scenarios

There is currently an IPA file not signed with the Enterprise certificate, the default is not directly installed on the device, we need to use the Enterprise certificate signature;

There is currently an IPA file that has been signed with an enterprise certificate, but we can re-sign it with another enterprise certificate;

The above two kinds of scenes have open platform in China to do, such as dandelion

2. Re-signing principles and tools

Solution:unzip the Ipaunzip application.iparemove old codesignaturerm-r "Payload/application.app/_codesignature" " Payload/application.app/coderesources "2>/dev/null | Truereplace Embedded Mobile Provisioning PROFILECP "Myenterprise.mobileprovision" "payload/application.app/ Embedded.mobileprovision "Re-sign/usr/bin/codesign-f-S" IPhone distribution:certificate Name "--resource-rules" Payload/application.app/resourcerules.plist "" Payload/application.app "RE-PACKAGEZIP-QR" Application.resigned.ipa "Payloadedit:removed the entitlement part (see alleys comment, thanks)

Tools:

Https://github.com/maciekish/iReSign

Https://github.com/RichardBronosky/ota-tools

https://gist.github.com/2878446

Reference: Http://stackoverflow.com/questions/6896029/re-sign-ipa-iphone

I am currently building with the use of the Hudson Xcodebuild Binder followed by Xcrun without any problems, all my applications

I have received several IPA files from different people and I would like to re-sign a corporate account instead of a company account (App Store, or sometimes temporarily distributed).

My problem is that when I try to resign the application, it will not install on my device (it should be because it is an enterprise version). The error message is the device (not appearing on itunes) and it tells me simply that it cannot install the application. No more information is given.

I found some information, (http://www.ketzler.de/2011/01/ resign-an-iphone-app-insert-new-bundle-id-and-send-to-xcode-organizer-for-upload/)

This is possible. The problem I am facing now is that it does not seem to embed the mobile provisioning profile, I do my normal build (using Xcrun) which is controllable by the collaborative design tool, or is it possible to re-flag Xcrun?

With my resignation script I'm currently doing

Decompression App.ipa
Application's name = $ (LS payload)
XCRUN-SDK iphoneos packageapplication-s "$ provisioning_profile" "$ project_dir/payload/Application name"-O "$ project_dir/ App-resigned.ipa "--sign" $ provisioning_profile "--embed" $ mobileprovision "
I looked at the generated IPA file and it seems to be very similar to the original application. What files to really change here? The _codesignature/coderesources I initially thought would change, but the content looks very much the same.

The pointers were greatly appreciated.

Re-signing IPA (IPhone)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.