First dump the IPA, and then extract the app see if encryption (shell), as shown in FIG.
0 means no encryption.
Open the package to see how many frameworks, because they all want to sign.
View your certificate information.
security find-identity -v -p codesigning
a signature.
codesign -fs "iPhone Developer: xxxxxxx" libswiftAVFoundation.dylib
then create a new xcode project generation.
Open the project package.
Copy the profile to be re-signed app below.
Then modify the re-signing of id, id is newly created.
Plist file permissions to extract just the file in embedded.mobileprovision. The name must be entitlements.plist
because the file is encrypted, so use the tool to see.
security cms -D -i /Users/haidragon/Library/Devcode/DerivedData/test_text-awscmazqxiqnebdunrgyqmtpejxx/Build/Products/Debug-iphoneos/test_text.app/embedded.mobileprovision
The following paragraph copy it.
We can borrow xcode create entitlements.plist, open xcode plist file is created.
Open the code.
Copy
must be able to see this, not the copying is wrong.
Also easy to forget that a binary file to see whether you can perform. 777 otherwise modify it.
The final step is the signature app package with plist file.
codesign -fs "iPhone Developer: xxxxxxx" --no-strict --entitlements entitlements.plist ./iRime.app
View signature information.
codesign -d -vv ./iRime.app/
last ipa package is compressed into just not packaged with plist file.
zip -ry iRime.ipa Payload
now installed on the phone. The same can also be used to borrow xcode other tools, such as ios-deploy
add ipa
found it impossible to install, have the plug-in, Watch they have signed. Then re-sign the package. I deleted it directly.
that's it.
You can then attach xcode debugging.
Reproduced in: https: //blog.51cto.com/haidragon/2406169