ptoomey3 / Keychain-Dumper

A tool to check which keychain items are available to an attacker once an iOS device has been jailbroken
BSD 3-Clause "New" or "Revised" License
1.35k stars 299 forks source link

Build issue _objc_release_x19 #71

Open alijnclarke opened 2 years ago

alijnclarke commented 2 years ago

Is there a specific version of the iPhone SDK this needs to be built with?

dyld: symbol '_objc_release_x19' not found, expected in '/usr/lib/libobjc.A.dylib', needed by '/private/var/tmp/./keychain_dumper'

Getting that error when attempting to to run after building using the latest xcode beta (with ios 16 sdk only). Will attempt using the 14.0.1 sdk, but thought it was worth an ask.

ptoomey3 commented 2 years ago

To be honest..I'm not sure. I'm not super plugged-in to the jailbreak or iOS development community anymore. Happy to keep this issue open though in case anyone else has some suggestions and/or wants to propose a fix.

danweber commented 2 years ago

Yes, you need an older SDK.

  1. Grab the proper SDK from https://github.com/xybp888/iOS-SDKs (github will probably require to download all of them, have fun).

  2. Modify the Makefile so that the SDK points to the proper SDK folder (such as iPhoneOS14.5.sdk).

I failed after that in warnings about needing to unlock my phone, which looks like a different open issue, so I think this is the fix but I'm not completely sure.

bensh commented 1 year ago

Fixed this by downloading Theos SDKs - https://github.com/theos/sdks

and using the below in top of Makefile

GCC_BIN=`xcrun --sdk iphoneos --find gcc`
SDK=$(THEOS)/sdks/iPhoneOS12.4.sdk
ARCH_FLAGS=-arch arm64
ptoomey3 commented 1 year ago

If anyone wants to open up a PR to script/automate the building using the best supported SDK that would be awesome.

Iemand005 commented 2 months ago

I got this error with 1.2.0 on iOS 15.7.

I managed to get it working by using version 1.1.0 instead.

Thanks to everyone who worked on this! Truly awesome stuff.