Encrypted binaries can't be dissembled, therefor we would want a decrypted version.
If you try to patch ipa and get the following error:
iron@MacOS / % objection patchipa --source app.ipa --codesign-signature R4****
Using latest Github gadget version: 14.2.18
Patcher will be using Gadget version: 14.2.18
No provision file specified, searching for one...
Found provision file /Users/eh/Library/Developer/Xcode/DerivedData/SimpleApp-dakhjjxfucvkvcbjioartrqpvxcv/Build/Products/Debug-iphoneos/SimpleApp.app/embedded.mobileprovision expiring in 364 days, 21:17:43.969691
Found a valid provisioning profile
Mobile provision bundle identifier is: *
Working with app: app.app
Bundle identifier is: com.app.simple
Codesigning 1 .dylib's with signature R4*****
Code signing: FridaGadget.dylib
Creating new archive with patched contents...
Codesigning patched IPA...
Error: This IPA is encrypted
at Applesign.signAppDirectory (/usr/local/lib/node_modules/applesign/index.js:137:15)
at Applesign.signIPA (/usr/local/lib/node_modules/applesign/index.js:100:18)
at async main (/usr/local/lib/node_modules/applesign/bin/applesign.js:55:7)
We can use frida-ios-dump
to grab the application when it's in decrypt state in memory
Link: https://github.com/AloneMonkey/frida-ios-dump
Mobexler@Mobexler ~/Downloads/frida-ios-dump master python3 ./dump.py com.app.simple 1 ↵ 200 17:04:33
Start the target app com.app.simple
Dumping SimpleApp to /tmp
[frida-ios-dump]: AdobeMobileSDK.framework has been loaded.
[frida-ios-dump]: SwiftyJSON.framework has been loaded.
start dump /private/var/containers/Bundle/Application/A9F18854-4427-4C2C-BC2C-99503834E272/Simple.app/SimpleGo
SimpleGo.fid: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 22.0M/22.0M [00:00<00:00, 27.6MB/s]
start dump /private/var/containers/Bundle/Application/A9F18854-4427-4C2C-BC2C-99503834E272/Simple.app/Frameworks/AdobeMobileSDK.framework/AdobeMobileSDK
AdobeMobileSDK.fid: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 616k/616k [00:00<00:00, 4.49MB/s]
start dump /private/var/containers/Bundle/Application/A9F18854-4427-4C2C-BC2C-99503834E272/Simple.app/Frameworks/Alamofire.framework/Alamofire
Alamofire.fid: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.84M/2.84M [00:00<00:00, 11.7MB/s]
0.00B [00:00, ?B/s]Generating "SimpleApp.ipa"
0.00B [00:00, ?B/s]
Link: https://github.com/as0ler/r2flutch