preface

I used RN to write an iOS application before, but only left an IPA. Because the signature expired and the server was changed, it could not be installed, so I wanted to do something by myself to make the software run on the mobile phone.

Tools to be prepared

  1. Xcode
  2. Sigh signature tool

steps

In this article, SmartNote. Ipa is the IPA I want to modify, and Test is the project we created through Xcode, which will be used to extract embedded. Mobileprovision files.

To get the embedded mobileprovision

  1. First you need to create an iPhone application project in Xcode and run it on your phone
  2. Get you a new package out of the app: the Product > Archive > right-click a packaged > Show in the finder > Products/Applications/Test
  3. Right-click the app to display the package contents. The embedded. Mobileprovision file is what we need, and copy it to the desktop

Modify the ipa

  1. Ipa is a zip file. Double-click the zip file to decompress it. The SmartNote app is displayed in the SmartNote/Payload folder
  2. Modify after the completion of SmartNote folder, entitlements. Plist, Payload and other files, right-click compression. Do not compress the outside SmartNote folder here, you will have one more level of directory and cannot fit.
  3. After compression, change the suffix to IPA

Heavy signature

  1. The command line runs the Sigh resign
    • Step 1: Drag the IPA directly in
    • Step 2: Select a signature to use, copy this line and press Apple Development: [email protected] (27A8BLCHQ)
    • Step 3: Drag embedded. Mobileprovision inside and press Enter
  2. Once signed, the IPA can be installed via Ace

Anything else you want to say

  • Do not package formatted main.jsbundle in a decompiled project; loading will fail
  • RN framework items, if you want to insert logs can be directly written, MAC console view
console.error('Test here! ');Copy the code