KJCracks / Clutch

Fast iOS executable dumper
3.69k stars 647 forks source link

dumping error. #180

Closed diegofn closed 7 years ago

diegofn commented 7 years ago

Hi to all

Can you help me? I download the Clutch git version. I compile and signed the code codesign -vvv -d ./Clutch Executable=~/Downloads/Clutch-master/build/Clutch Identifier=Clutch-555549447400994c47163feb9e7d0121992532f5 Format=Mach-O universal (armv7 arm64) CodeDirectory v=20100 size=2528 flags=0x2(adhoc) hashes=71+5 location=embedded Hash type=sha256 size=32 CandidateCDHash sha1=f0ad55dd0be26ddf153a29ed18119ff0fbbe28a8 CandidateCDHash sha256=b20f1551fd7ea86ca4996e622f30fdeec264e8fd Hash choices=sha1,sha256 CDHash=b20f1551fd7ea86ca4996e622f30fdeec264e8fd Signature=adhoc Info.plist=not bound TeamIdentifier=not set Sealed Resources=none Internal requirements count=0 size=12

But I get the following errors? Can you help me?

./Clutch -d 43 --verbose 2017-05-13 13:56:30.281 Clutch[861:8837] command: Print verbose messages 2017-05-13 13:56:30.283 Clutch[861:8837] command: Dump specified bundleID into .ipa file Now dumping com.counterpath.bvipad Preparing to dump Path: /var/containers/Bundle/Application/9D91AC04-17D9-4496-8197-E0069086EEA8/BriaVoipiPad.app/BriaVoipiPad Preparing to dump Path: /var/containers/Bundle/Application/9D91AC04-17D9-4496-8197-E0069086EEA8/BriaVoipiPad.app/PlugIns/CallDirectoryExtension.appex/CallDirectoryExtension Preparing to dump Path: /var/containers/Bundle/Application/9D91AC04-17D9-4496-8197-E0069086EEA8/BriaVoipiPad.app/PlugIns/IntentsExtension.appex/IntentsExtension Zipping BriaVoipiPad.app Swapping architectures.. Error: Could not obtain mach port, either the process is dead (codesign error?) or entitlements were not properly signed!

Error: Failed to dump with arch arm64

2017-05-13 13:56:34.281 Clutch[861:8862] failed operation :( 2017-05-13 13:56:34.281 Clutch[861:8862] application <NSOperationQueue: 0x130a62a50>{name = 'NSOperationQueue 0x130a62a50'} Error: Failed to dump

2017-05-13 13:56:34.282 Clutch[861:8862] failed operation :( 2017-05-13 13:56:34.282 Clutch[861:8862] application <NSOperationQueue: 0x130a62a50>{name = 'NSOperationQueue 0x130a62a50'} Error: Could not obtain mach port, either the process is dead (codesign error?) or entitlements were not properly signed!?

Error: Failed to dump with arch armv7

2017-05-13 13:56:34.315 Clutch[861:8864] failed operation :( 2017-05-13 13:56:34.315 Clutch[861:8864] application <NSOperationQueue: 0x130a64920>{name = 'NSOperationQueue 0x130a64920'} Error: Could not obtain mach port, either the process is dead (codesign error?) or entitlements were not properly signed!

Error: Failed to dump with arch arm64

2017-05-13 13:56:34.323 Clutch[861:8864] failed operation :( 2017-05-13 13:56:34.323 Clutch[861:8864] application <NSOperationQueue: 0x130a64920>{name = 'NSOperationQueue 0x130a64920'} Error: Failed to dump

2017-05-13 13:56:34.324 Clutch[861:8864] failed operation :( 2017-05-13 13:56:34.325 Clutch[861:8864] application <NSOperationQueue: 0x130a64920>{name = 'NSOperationQueue 0x130a64920'} Swapping architectures.. ASLR slide: 0x94000 Dumping (armv7) Patched cryptid (32bit segment) Writing new checksum ASLR slide: 0x100050000 Dumping (arm64) Patched cryptid (64bit segment) Writing new checksum Zipping CallDirectoryExtension.appex Zipping IntentsExtension.appex FAILED: Finished dumping com.counterpath.bvipad in 23.1 seconds

Tatsh commented 7 years ago

That is not how you codesign Clutch, which is automatically done correctly if you follow the build instructions.

codesign -fs- --entitlements "$CODE_SIGN_ENTITLEMENTS" "build/$EXECUTABLE_NAME" where CODE_SIGN_ENTITLEMENTS is the path to the Clutch.entitlements file.