Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Killed: 9 on jailbroken iOS #23

Open
mio-19 opened this issue Feb 4, 2023 · 4 comments
Open

Killed: 9 on jailbroken iOS #23

mio-19 opened this issue Feb 4, 2023 · 4 comments

Comments

@mio-19
Copy link

mio-19 commented Feb 4, 2023

I used precompiled binary from https://github.com/paradiseduo/appdecrypt/releases/download/2.1/appdecrypt_arm64_iOS.zip

@mio-19
Copy link
Author

mio-19 commented Feb 4, 2023

should be a signing problem. Packing a deb and install it via package manager will fix this issue

@mio-19
Copy link
Author

mio-19 commented Feb 4, 2023

appdecrypt.deb.zip

# appdecrypt
dyld[1761]: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /private/preboot/D7FDF09693CA271B79E1285A54B32B0EC409DDAF6130B06FD18D717C078D1305DF12CD1F04FC0D5EDC95C87BF4BE2399/procursus/usr/bin/appdecrypt
  Reason: tried: '/var/lib/swift/libswiftCore.dylib' (no such file), '/private/preboot/D7FDF09693CA271B79E1285A54B32B0EC409DDAF6130B06FD18D717C078D1305DF12CD1F04FC0D5EDC95C87BF4BE2399/procursus/usr/bin/libswiftCore.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib' (no such file), '/var/lib/swift/libswiftCore.dylib' (no such file), '/private/preboot/D7FDF09693CA271B79E1285A54B32B0EC409DDAF6130B06FD18D717C078D1305DF12CD1F04FC0D5EDC95C87BF4BE2399/procursus/usr/bin/libswiftCore.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib' (no such file), '/usr/local/lib/libswiftCore.dylib' (no such file), '/usr/lib/libswiftCore.dylib' (no such file)
Abort trap: 6

@mio-19
Copy link
Author

mio-19 commented Feb 4, 2023

tried a libswiftCore.dylib from a random app

# appdecrypt --help
dyld[1799]: Library not loaded: @rpath/libswiftCore.dylib
  Referenced from: /private/preboot/D7FDF09693CA271B79E1285A54B32B0EC409DDAF6130B06FD18D717C078D1305DF12CD1F04FC0D5EDC95C87BF4BE2399/procursus/usr/bin/appdecrypt
  Reason: tried: '/var/lib/swift/libswiftCore.dylib' (code signature in <0CDD21BB-2FD0-3B0F-9B18-AD4C8B12C66B> '/private/preboot/D7FDF09693CA271B79E1285A54B32B0EC409DDAF6130B06FD18D717C078D1305DF12CD1F04FC0D5EDC95C87BF4BE2399/procursus/usr/lib/swift/libswiftCore.dylib' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/private/preboot/D7FDF09693CA271B79E1285A54B32B0EC409DDAF6130B06FD18D717C078D1305DF12CD1F04FC0D5EDC95C87BF4BE2399/procursus/usr/bin/libswiftCore.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib' (no such file), '/var/lib/swift/libswiftCore.dylib' (code signature in <0CDD21BB-2FD0-3B0F-9B18-AD4C8B12C66B> '/private/preboot/D7FDF09693CA271B79E1285A54B32B0EC409DDAF6130B06FD18D717C078D1305DF12CD1F04FC0D5EDC95C87BF4BE2399/procursus/usr/lib/swift/libswiftCore.dylib' not valid for use in process: mapping process and mapped file (non-platform) have different Team IDs), '/private/preboot/D7FDF09693CA271B79E1285A54B32B0EC409DDAF6130B06FD18D717C078D1305DF12CD1F04FC0D5EDC95C87BF4BE2399/procursus/usr/bin/libswiftCore.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib' (no such file), '/usr/local/lib/libswiftCore.dylib' (no such file), '/usr/lib/libswiftCore.dylib' (no such file)
Abort trap: 6

Maybe Embed Swift Standard Libraries should be enabled

@Torrekie
Copy link

strip `which appdecrypt`
install_name_tool -change @rpath/libswiftCore.dylib /usr/lib/swift/libswiftCore.dylib `which appdecrypt`
ldid -Sent.xml `which appdecrypt`

ent.xml:

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>platform-application</key>
        <true/>
        <key>com.apple.private.security.no-container</key>
        <true/>
        <key>com.apple.private.skip-library-validation</key>
        <true/>
</dict>
</plist>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants