ipsw icon indicating copy to clipboard operation
ipsw copied to clipboard

`ipsw car` doesn't properly extract files from archive.

Open Whovian9369 opened this issue 5 months ago • 11 comments

What happened?

Log file of errors: gba4ios car errors.log Log file created with $ ipsw car Assets.car -o ipsw_car/ 2>>ipsw_car/log.log >> ipsw_car/log.log

I expected the files to be extracted.

How can we reproduce this?

Try to extract Assets.car from https://cdn.altstore.io/file/altstore/apps/gba4ios/3_0.ipa

ipsw version

Using config file: /home/whovian/.config/ipsw/config.yaml
Version: 3.1.623, BuildCommit: cdcc12733589188b37c12d238f802c03d8a07330

Search

  • [x] I did search for other open and closed issues before opening this

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

Additional context

Also wanting to call attention to this specific error as part of this, also from above log file: ⨯ BOM block KEYFORMATWORKAROUND parsing not implemented yet - please open an issue on github.com/blacktop/ipsw/issues

Config file contents without comments:

root:
  color: true
  config-quiet: true

download:
  resume-all: true
  ipsw:
    output: /home/whovian/Downloads/Software/iOS/Firmware/Incoming

Whovian9369 avatar Aug 03 '25 23:08 Whovian9369

It appears that the KEYFORMATWORKAROUND issue is fixed, thank you! I'm still getting failed to decode image errors, which I've replicated below. Also as I was typing this, I realized I wasn't actually extracting like I thought that I was, oops.

New log file: ipsw_car.ansi2txt.log

New error list:

⨯ failed to decode image 'ZZZZPackedAsset-1.0.1-gamut0': error image content
⨯ failed to decode image 'ZZZZPackedAsset-1.0.1-gamut0': error image content
⨯ failed to decode image 'Controller_Triggers.png': error image content
⨯ failed to decode image 'ICON.pdf': error image content
⨯ failed to decode image 'icon.png': error image content
⨯ failed to decode image 'Controller_Buttons.png': error image content
⨯ failed to decode image 'ZZZZPackedAsset-1.0.1-gamut0': failed to create gzip reader: gzip: invalid header
⨯ failed to decode image 'Controller_Triggers.png': unexpected EOF
⨯ failed to decode image 'icon.png': unexpected EOF
⨯ failed to decode image 'Controller_Buttons.png': EOF
⨯ failed to decode image 'ZZZZPackedAsset-2.0.1-gamut0': error image content
⨯ failed to decode image '[email protected]': error image content
⨯ failed to decode image 'ICON.pdf': error image content
⨯ failed to decode image 'icon2x.png': error image content
⨯ failed to decode image '[email protected]': error image content
⨯ failed to decode image 'ICON.pdf': unknown encoding: Deepmap2
⨯ failed to decode image 'icon2x.png': unexpected EOF
⨯ failed to decode image '[email protected]': EOF
⨯ failed to decode image 'ZZZZPackedAsset-3.0.1-gamut0': error image content
⨯ failed to decode image '[email protected]': error image content
⨯ failed to decode image 'ICON.pdf': error image content
⨯ failed to decode image 'icon3x.png': error image content
⨯ failed to decode image '[email protected]': error image content
⨯ failed to decode image 'ICON.pdf': unknown encoding: Deepmap2
⨯ failed to decode image 'icon3x.png': unexpected EOF

Whovian9369 avatar Aug 06 '25 20:08 Whovian9369

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Sep 06 '25 02:09 github-actions[bot]

Adding to this -- I tried ed7bb0e1afd318fd6963d06c4cfb4b48ebce2b95 on com.feralinteractive.laracroftguardianoflight_6502455111_1.2.4's /Payload/Lara Croft and the Guardian of Light.app/Assets.car

Using similar command to above (ipsw car Assets.car -o Output_Directory/ and sending the logs to a file), I got these errors:

failed to decode image 'feral_logo3x-2.png': unknown encoding: Deepmap2
failed to decode image 'feral_logo3x-1.png': EOF
failed to decode image 'feral_logo3x.png': unknown encoding: Deepmap2

Edit: Here's the updated ipsw version info to be sure:

$  ipsw version
Using config file: /home/whovian/.config/ipsw/config.yaml
Version: unstable-2025-09-19, BuildCommit: ed7bb0e1afd318fd6963d06c4cfb4b48ebce2b95

Whovian9369 avatar Sep 20 '25 19:09 Whovian9369

thx, sorry this got shelved for a bit; there is a feat branch feat/car where I was trying work on this (might be better or worse than master I can't remember) I'll try to pick this back up soon.

blacktop avatar Sep 20 '25 21:09 blacktop

No worries, I had the chance to try the feature again and noticed those issues. I'll see if I can do any testing on the changes from the branch!

Whovian9369 avatar Sep 21 '25 01:09 Whovian9369

rebased feat branch

blacktop avatar Sep 22 '25 18:09 blacktop

Finally got around to testing that. Only got failed to continue deepmap2 payload: EOF as errors now.

$  ipsw version
Using config file: /home/whovian/.config/ipsw/config.yaml
Version: unstable-2025-09-22, BuildCommit: 81ddb29908ea97929ffd64fd845d049f7c4b6fe1

Output of $ ipsw car Assets.car -o Assets.car_out 2>>ipsw_car.log >> ipsw_car.log is available at: ipsw_car.log

Edit: A further very minor issue is that the output directory is not automatically created by ipsw, and has to be made manually by the user before extraction. It's not really within scope of this issue, but I felt it warrants a mention anyway.

Whovian9369 avatar Sep 25 '25 22:09 Whovian9369

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Oct 26 '25 02:10 github-actions[bot]

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Nov 26 '25 02:11 github-actions[bot]

I guess this is also an informal request to disable the "Stale Bot", please.

Whovian9369 avatar Nov 26 '25 18:11 Whovian9369

If I remember correctly the triage flag prevents the stale-bot from kicking in ;)

blacktop avatar Dec 04 '25 01:12 blacktop