ios ipa re-signing third parties as well as additional debugging xcode

First dump the IPA, and then extract the app see if encryption (shell), as shown in FIG.
ios ipa re-signing third parties as well as additional debugging xcode
0 means no encryption.
ios ipa re-signing third parties as well as additional debugging xcode
Open the package to see how many frameworks, because they all want to sign.
ios ipa re-signing third parties as well as additional debugging xcode
View your certificate information.
security find-identity -v -p codesigning
ios ipa re-signing third parties as well as additional debugging xcode
a signature.
codesign -fs "iPhone Developer: xxxxxxx" libswiftAVFoundation.dylib
ios ipa re-signing third parties as well as additional debugging xcode
then create a new xcode project generation.
ios ipa re-signing third parties as well as additional debugging xcode
Open the project package.
Copy the profile to be re-signed app below.
ios ipa re-signing third parties as well as additional debugging xcode
ios ipa re-signing third parties as well as additional debugging xcode
Then modify the re-signing of id, id is newly created.
ios ipa re-signing third parties as well as additional debugging xcode
ios ipa re-signing third parties as well as additional debugging xcode
ios ipa re-signing third parties as well as additional debugging xcode
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 

ios ipa re-signing third parties as well as additional debugging xcode
The following paragraph copy it.
ios ipa re-signing third parties as well as additional debugging xcode
We can borrow xcode create entitlements.plist, open xcode plist file is created.
ios ipa re-signing third parties as well as additional debugging xcode
Open the code.
ios ipa re-signing third parties as well as additional debugging xcode
Copy
ios ipa re-signing third parties as well as additional debugging xcode
must be able to see this, not the copying is wrong.
ios ipa re-signing third parties as well as additional debugging xcode
Also easy to forget that a binary file to see whether you can perform. 777 otherwise modify it.
ios ipa re-signing third parties as well as additional debugging xcode
The final step is the signature app package with plist file.

 codesign -fs "iPhone Developer: xxxxxxx" --no-strict --entitlements entitlements.plist ./iRime.app

ios ipa re-signing third parties as well as additional debugging xcode
View signature information.
codesign -d -vv ./iRime.app/
ios ipa re-signing third parties as well as additional debugging xcode
last ipa package is compressed into just not packaged with plist file.
zip -ry iRime.ipa Payload
ios ipa re-signing third parties as well as additional debugging xcode
now installed on the phone. The same can also be used to borrow xcode other tools, such as ios-deploy
ios ipa re-signing third parties as well as additional debugging xcode
add ipa
ios ipa re-signing third parties as well as additional debugging xcode
found it impossible to install, have the plug-in, Watch they have signed. Then re-sign the package. I deleted it directly.
ios ipa re-signing third parties as well as additional debugging xcode
that's it.
ios ipa re-signing third parties as well as additional debugging xcode
You can then attach xcode debugging.
ios ipa re-signing third parties as well as additional debugging xcode

Reproduced in: https: //blog.51cto.com/haidragon/2406169

Guess you like

Origin blog.csdn.net/weixin_34297300/article/details/93088359