要想保留原APP的bundleId不变,则重签名的证书的bundleId规则如下: 原App的bundleId: com.abc.hell 用于重签名的bundleId:com.abc.hell.xyz 保证原APP的bundleId是重签名的bundleId的前缀
codesign -d -vv /Users/RyukieW/Inke/技术相关/重签名调研/sui/Payload/Finance.app
Executable=/Users/RyukieW/Inke/技术相关/重签名调研/sui/Payload/Finance.app/Finance
Identifier=com.feidee.myfinance
Format=app bundle with Mach-O thin (arm64)
CodeDirectory v=20400 size=67736 flags=0x0(none) hashes=2108+5 location=embedded
Signature size=4820
Authority=iPhone Developer: xiangdong Ren (23Z6TN7Z56)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=Nov 14, 2018 at 10:58:22 AM
Info.plist entries=37
TeamIdentifier=3Q47P4VEX9
Sealed Resources version=2 rules=10 files=446
Internal requirements count=1 size=180
gebiwangshushudeMacBook:Finance.app RyukieW$ otool -l Finance | grep cryp
cryptoff 16384
cryptsize 6897664
cryptid 0
其中cryptid为0代表已经砸壳,即解密,为1或者2表示以第1类或者第2类加密方案加密。
security find-identity -v -p codesigning
security cms -D -i XX.mobileprovision > profile.plist
/usr/libexec/PlistBuddy -x -c 'Print :Entitlements' profile.plist > entitlements.plist
cat entitlements.plist
cp XX.mobileprovision Payload/XX.app/embedded.mobileprovision
/usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier com.gdinke.meetstar.dev" Info.plist
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" Alamofire.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" TZImagePickerController.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" CryptoSwift.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" WCDBSwift.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" FinanceAlert.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" XLActionController.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" FinanceImagePicker.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftAVFoundation.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" FinanceKeyboard.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftAccelerate.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" FinanceKit.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftCore.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" FinanceLoadingView.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftCoreAudio.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" FinanceNotice.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftCoreData.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" FinancePoper.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftCoreFoundation.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" FinanceRefresh.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftCoreGraphics.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" FinanceRuler.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftCoreImage.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" FinanceVendors.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftCoreLocation.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" IQKeyboardManagerSwift.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftCoreMedia.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" Iverson.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftDarwin.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" Kingfisher.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftDispatch.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" Messi.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftFoundation.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" Moya.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftMediaPlayer.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" Pageboy.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftMetal.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" PopoverKit.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftObjectiveC.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" Reachability.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftPhotos.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" Result.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftQuartzCore.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" SnapKit.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftSwiftOnoneSupport.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" SwiftSVG.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftUIKit.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" Swifty.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftos.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" SwiftyJSON.framework
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" libswiftsimd.dylib
codesign -f -s "iPhone Developer: kai chen (8SRJU35B8T)" --no-strict --entitlements=entitlements.plist Finance.app
zip -ry Finance.ipa Payload
// zip –ry 「输出文件名」 「输入文件名」