Strange unique case of an app exiting unexpectedly the helper
With my current iDevice running with Taurine jailbreak, trying to decrypt Cult of the Lamb (https://apps.apple.com/us/app/cult-of-the-lamb/id1639580858) crashes the helper with exit code 132.
C:\Users\User>ipadecrypt --redact decrypt https://apps.apple.com/us/app/cult-of-the-lamb/id1639580858
✓ ipadecrypt v0.7.2 · [email protected] iOS 14.7.1 arm64 iPhone10,4 (unknown)
✓ signed in as ###### (###### storefront)
✓ found com.devolverdigital.cultofthelamb on App Store
✓ cached com.devolverdigital.cultofthelamb_1.4.13.ipa
✓ patched Info.plist
✓ MinimumOSVersion 16.0 → 14.7.1
✓ installed → /var/containers/Bundle/Application/CA9C0F69-5C1B-4C07-A1D1-88CDDC955883/CultOfTheLamb.app
· spawned com.devolverdigital.cultofthelamb via SBS (pid=1871)
· decrypted main CultOfTheLamb (16.0 KB)
· symtab patches: 2 (Diagnostics::error ret)
✗ assemble: helper exit 132
✓ uninstalled com.devolverdigital.cultofthelamb
I am currently confused why this specific app causes the helper to exit, because most Apple Arcade game with a higher version that the current iDevice don't support (currently tested iOS 15 and iOS 17) can be decrypted without any problems. I also tried to decrypt a separate app named Infomaniak kDrive (https://apps.apple.com/ch/app/infomaniak-kdrive/id1482778676?l=en-GB) that requires at least iOS 16 (the same minimum required version for this game) that did work, except of possible bug regression after an update that may relates to issue #23 and may have unintentionally broke some Framework decryption. --no-verify can be passed but it will simply crash itself due to critical missing Frameworks after the sideloading and attempts to open the app.
C:\Users\User>ipadecrypt --redact decrypt https://apps.apple.com/us/app/infomaniak-kdrive/id1482778676
✓ ipadecrypt v0.7.2 · [email protected] iOS 14.7.1 arm64 iPhone10,4 (unknown)
✓ signed in as ###### (###### storefront)
✓ found com.infomaniak.drive on App Store
✓ cached com.infomaniak.drive_5.13.1.ipa
✓ patched Info.plist
✓ MinimumOSVersion 16.0 → 14.7.1
✓ installed → /var/containers/Bundle/Application/41CB0AE2-7B32-45EB-87F4-9AA3937C8AAB/kDrive.app
· spawned com.infomaniak.drive via SBS (pid=2811)
· decrypted main kDrive (3.5 MB)
· symtab patches: 2 (Diagnostics::error ret)
· target trapped: EXC_CRASH (skips=0 pac_strips=0)
· decrypted Frameworks/AppLock.framework/AppLock (48.0 KB)
· decrypted Frameworks/Atlantis.framework/Atlantis (192.0 KB)
· decrypted Frameworks/DesignSystem.framework/DesignSystem (16.0 KB)
· decrypted Frameworks/DeviceAssociation.framework/DeviceAssociation (32.0 KB)
· decrypted Frameworks/DifferenceKit.framework/DifferenceKit (96.0 KB)
· decrypted Frameworks/InAppTwoFactorAuthentication.framework/InAppTwoFactorAuthentication (144.0 KB)
· decrypted Frameworks/InfomaniakBugTracker.framework/InfomaniakBugTracker (240.0 KB)
· decrypted Frameworks/InfomaniakConcurrency.framework/InfomaniakConcurrency (48.0 KB)
· decrypted Frameworks/InfomaniakCoreCommonUI.framework/InfomaniakCoreCommonUI (272.0 KB)
· decrypted Frameworks/InfomaniakCoreDB.framework/InfomaniakCoreDB (16.0 KB)
· decrypted Frameworks/InfomaniakCoreSwiftUI.framework/InfomaniakCoreSwiftUI (576.0 KB)
· decrypted Frameworks/InfomaniakCoreUIKit.framework/InfomaniakCoreUIKit (80.0 KB)
· decrypted Frameworks/InfomaniakDeviceCheck.framework/InfomaniakDeviceCheck (48.0 KB)
· decrypted Frameworks/InfomaniakNotifications.framework/InfomaniakNotifications (48.0 KB)
· decrypted Frameworks/InfomaniakOnboarding.framework/InfomaniakOnboarding (80.0 KB)
· decrypted Frameworks/InterAppLogin.framework/InterAppLogin (128.0 KB)
· decrypted Frameworks/KSuite.framework/KSuite (64.0 KB)
· decrypted Frameworks/KSuiteUtils.framework/KSuiteUtils (48.0 KB)
· decrypted Frameworks/LocalizeKit.framework/LocalizeKit (32.0 KB)
· decrypted Frameworks/MaterialOutlinedTextField.framework/MaterialOutlinedTextField (32.0 KB)
· decrypted Frameworks/MyKSuite.framework/MyKSuite (144.0 KB)
· decrypted Frameworks/Nuke.framework/Nuke (416.0 KB)
· decrypted Frameworks/Realm.framework/Realm (3.8 MB)
· decrypted Frameworks/RealmSwift.framework/RealmSwift (656.0 KB)
· decrypted Frameworks/SwiftRegex.framework/SwiftRegex (16.0 KB)
· decrypted Frameworks/_LottieStub.framework/_LottieStub (16.0 KB)
· decrypted Frameworks/kDriveCore.framework/kDriveCore (3.1 MB)
· decrypted Frameworks/kDriveResources.framework/kDriveResources (368.0 KB)
· decrypted Frameworks/Lottie.framework/Lottie (1.8 MB)
· target dlopen unresolved inject skipped
· bundle done: 29 framework(s) decrypted
· spawned /var/containers/Bundle/Application/41CB0AE2-7B32-45EB-87F4-9AA3937C8AAB/kDrive.app/PlugIns/kDriveActionExtension.appex/kDriveActionExtension via ptrace (pid=2812)
· decrypted main kDriveActionExtension (1.9 MB)
· spawned /var/containers/Bundle/Application/41CB0AE2-7B32-45EB-87F4-9AA3937C8AAB/kDrive.app/PlugIns/kDriveShareExtension.appex/kDriveShareExtension via ptrace (pid=2814)
· decrypted main kDriveShareExtension (1.9 MB)
· spawned /var/containers/Bundle/Application/41CB0AE2-7B32-45EB-87F4-9AA3937C8AAB/kDrive.app/PlugIns/kDriveFileProvider.appex/kDriveFileProvider via ptrace (pid=2816)
· decrypted main kDriveFileProvider (160.0 KB)
✓ decrypted 33 image(s): 4 main, 29 framework (47.3 MB → C:\Users\Public\com.infomaniak.drive_5.13.1.decrypted.ipa)
✗ verify failed: 8 still encrypted
Payload/kDrive.app/Frameworks/InfomaniakLogin.framework/InfomaniakLogin still encrypted (cryptid != 0)
Payload/kDrive.app/Frameworks/InfomaniakCoreUIResources.framework/InfomaniakCoreUIResources still encrypted (cryptid != 0)
Payload/kDrive.app/Frameworks/Sentry.framework/Sentry still encrypted (cryptid != 0)
Payload/kDrive.app/Frameworks/InfomaniakDI.framework/InfomaniakDI still encrypted (cryptid != 0)
Payload/kDrive.app/Frameworks/Alamofire.framework/Alamofire still encrypted (cryptid != 0)
Payload/kDrive.app/Frameworks/InfomaniakCore.framework/InfomaniakCore still encrypted (cryptid != 0)
Payload/kDrive.app/Frameworks/NukeUI.framework/NukeUI still encrypted (cryptid != 0)
Payload/kDrive.app/Frameworks/VersionChecker.framework/VersionChecker still encrypted (cryptid != 0)
✓ uninstalled com.infomaniak.drive
Please check https://github.com/londek/ipadecrypt/releases/tag/v0.9.0-rc.1
Thank you for your hard work for bringing a local/offline way to decrypt App Store apps with fairplay-decrypt implementation without having to rely on a Mac/Linux system! Infomaniak kDrive can finally be fully decrypted with it! However, I still didn't manage to decrypt it with it. I believe this is a bug (check issue #16) or a missing feature that hasn't been implemented with it. This is the log of the error:
C:\Users\User>ipadecrypt --redact decrypt https://apps.apple.com/us/app/cult-of-the-lamb/id1639580858
✓ signed in as ###### (###### storefront)
✓ found com.devolverdigital.cultofthelamb on App Store
✓ downloaded com.devolverdigital.cultofthelamb_1.5.25.ipa
✗ decrypt failed: Payload/CultOfTheLamb.app/Frameworks/AppleCoreNative.framework/AppleCoreNative: credential does not decode this SINF priv record
this credential belongs to a different Apple account; sign in with the account that owns the app and re-run `ipadecrypt bootstrap --remint`
C:\Users\User>
I'll try the latest version of ipadecrypt without this implementation that seems to have been fixed at #40.
Upon trying the latest version of ipadecrypt without the implementation of fairplay-decrypt, the issues seem to be partially fixed. But most of their frameworks still remain encrypted, which cannot be launched upon sideloading. Strangely, executing the same command again for the second time will show the previous issue I reported at the start of the issue. The 1639580858_1.5.25.ipa file package has been directly downloaded with ipatool because of the issue #46 that has been fixed shortly after. This is the log of it:
C:\Users\User>ipadecrypt-old decrypt C:\Users\User\Downloads\1639580858_1.5.25.ipa
✓ ipadecrypt v0.8.0-rc.2 · [email protected] iOS 14.7.1 arm64 iPhone10,4 (unknown)
✓ local IPA 1639580858_1.5.25.ipa
✓ com.devolverdigital.cultofthelamb v1.5.25
✓ patched Info.plist
✓ MinimumOSVersion 16.0 → 14.7.1
✓ installed → /var/containers/Bundle/Application/C0E9DD8B-A5A1-4B4B-92F8-2FC32441F72A/CultOfTheLamb.app
· SBS rejected com.devolverdigital.cultofthelamb, trying ptrace
· spawned /var/containers/Bundle/Application/C0E9DD8B-A5A1-4B4B-92F8-2FC32441F72A/CultOfTheLamb.app/CultOfTheLamb via ptrace (pid=3032)
· decrypted main CultOfTheLamb (16.0 KB)
✓ decrypted 1 image(s): 1 main, 0 framework (1.45 GB → C:\Users\User\com.devolverdigital.cultofthelamb_1.5.25.decrypted.ipa)
✗ verify failed: 5 still encrypted
Payload/CultOfTheLamb.app/Frameworks/GameControllerWrapper.framework/GameControllerWrapper still encrypted (cryptid != 0)
Payload/CultOfTheLamb.app/Frameworks/AppleCoreNative.framework/AppleCoreNative still encrypted (cryptid != 0)
Payload/CultOfTheLamb.app/Frameworks/UnityFramework.framework/UnityFramework still encrypted (cryptid != 0)
Payload/CultOfTheLamb.app/Frameworks/GameKitWrapper.framework/GameKitWrapper still encrypted (cryptid != 0)
Payload/CultOfTheLamb.app/Frameworks/VBCoreLibrary.framework/VBCoreLibrary still encrypted (cryptid != 0)
✓ uninstalled com.devolverdigital.cultofthelamb
C:\Users\User>ipadecrypt-old decrypt C:\Users\User\Downloads\1639580858_1.5.25.ipa
✓ ipadecrypt v0.8.0-rc.2 · [email protected] iOS 14.7.1 arm64 iPhone10,4 (unknown)
✓ local IPA 1639580858_1.5.25.ipa
✓ com.devolverdigital.cultofthelamb v1.5.25
✓ patched Info.plist
✓ MinimumOSVersion 16.0 → 14.7.1
✓ installed → /var/containers/Bundle/Application/09D319A7-F9EB-4149-83A7-B2AE61848E4F/CultOfTheLamb.app
· spawned com.devolverdigital.cultofthelamb via SBS (pid=3147)
· decrypted main CultOfTheLamb (16.0 KB)
· symtab patches: 2 (Diagnostics::error ret)
✗ assemble: helper exit 132
✓ uninstalled com.devolverdigital.cultofthelamb
C:\Users\User>
However, I found out that using TrollDecrypt JB for the decryption part somehow managed to properly decrypt all of its remaining Frameworks while ipadecrypt didn't. I simply had to let ipadecrypt patch and install the .IPA file without uninstalling even after completion (ipadecrypt decrypt --no-uninstall 1639580858_1.5.25.ipa) and let TrollDecrypt JB do the decryption part instead.
I'm not sure if my own workaround fixes that particular issue, so I let you close the issue if you feel like it.
I'm closing this issue in favor of the Apple Arcade credential minting release support which fixed the headache of the on-device decryption process. Though, the helper exit 132 code is still present for my case. Feel free to reopen the issue if you want to dig deeper about it. Thank you for maintaining this project!