AltStore icon indicating copy to clipboard operation
AltStore copied to clipboard

The process 'altjit' failed with code 1. Could not connect to device . The process 'python3' returned unexpected output. KeyError: EnumIntegerString.new(3, 'PUBLIC_KEY')

Open jaydenchan1027 opened this issue 1 year ago • 20 comments

Im in ios 17.4 beta with mac running macos 14.2 I tried everything but it won't work at all

jaydenchan1027 avatar Feb 03 '24 14:02 jaydenchan1027

Im in ios 17.4 beta with mac running macos 14.2 I tried everything but it won't work at all

same here, AltStore also crashes on launch in 17.4 beta

bo2themax avatar Feb 06 '24 15:02 bo2themax

Im in ios 17.4 beta with mac running macos 14.2 I tried everything but it won't work at all

same here, AltStore also crashes on launch in 17.4 beta

Found a working way to refresh all my apps: using shortcuts!

bo2themax avatar Feb 08 '24 09:02 bo2themax

I am experiencing this error on iOS 17.3. I installed the dependencies through Xcode with /Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m pip install -U pymobiledevice3==2.30.0 construct==2.10.6

dylanchapell avatar Feb 08 '24 20:02 dylanchapell

Happens to me on ios 17.2.1

deargosep avatar Feb 10 '24 22:02 deargosep

Same issue, running iPad OS 17.3.1 on iPad Air 5. Using AltServer on MacOS Sonoma.

RockChinQ avatar Apr 09 '24 06:04 RockChinQ

Same issue, running iPadOS 17.3 on iPad Pro 2022. Alt server is installed on macOS Ventura.

hyhcrh avatar Apr 13 '24 08:04 hyhcrh

Also having this happen , blew away my homebrew and fully reinstalled brew environment according to instructions.. making sure I have OpenSSL3 and the proper versions of the pymobiledevice/construct tooling:

brew install openssl@3 python3 -m pip install pymobiledevice3==2.30.0 construct==2.10.69

Running macos 14.4.1 (23E224) on an M3 mac (arm) / iOS 17.4.1

From my mac I selected "enable JIT" for UTM.. it asks for my mac password.. works for a couple of seconds.. and then dumps this:

Detailed error dump below:

Error Description
The process 'altjit' failed with code 1. Could not connect to device 00008110-000538693638801E. The process 'python3' returned unexpected output. KeyError: EnumIntegerString.new(3, 'PUBLIC_KEY')

Failure Reason
The process 'altjit' failed with code 1. Could not connect to device 00008110-000538693638801E. The process 'python3' returned unexpected output. KeyError: EnumIntegerString.new(3, 'PUBLIC_KEY')

Title
JIT could not be enabled for UTM.

Source Line
61

executableURL
file:///Applications/AltServer.app/Contents/MacOS/altjit

exitCode
1

output
/Users/aless/Library/Python/3.9/lib/python/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(
Traceback (most recent call last):
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/pymobiledevice3/__main__.py", line 148, in <module>
    main()
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/pymobiledevice3/__main__.py", line 100, in main
    cli()
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/pymobiledevice3/cli/cli_common.py", line 108, in wrapper
    func(*args, **kwargs)
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/pymobiledevice3/cli/remote.py", line 159, in cli_start_quic_tunnel
    asyncio.run(tunnel_task(rsd, secrets, script_mode, max_idle_timeout=max_idle_timeout), debug=True)
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
    return future.result()
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/pymobiledevice3/cli/remote.py", line 97, in tunnel_task
    async with start_quic_tunnel(service_provider, secrets=secrets, max_idle_timeout=max_idle_timeout) as tunnel_result:
  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/contextlib.py", line 175, in __aenter__
    return await self.gen.__anext__()
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/pymobiledevice3/remote/core_device_tunnel_service.py", line 591, in start_quic_tunnel
    with create_core_device_tunnel_service(service_provider, autopair=True) as service:
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/pymobiledevice3/remote/core_device_tunnel_service.py", line 581, in create_core_device_tunnel_service
    service.connect(autopair=autopair)
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/pymobiledevice3/remote/core_device_tunnel_service.py", line 212, in connect
    if not self._validate_pairing():
  File "/Users/aless/Library/Python/3.9/lib/python/site-packages/pymobiledevice3/remote/core_device_tunnel_service.py", line 453, in _validate_pairing
    peer_public_key = X25519PublicKey.from_public_bytes(data[PairingDataComponentType.PUBLIC_KEY])
KeyError: EnumIntegerString.new(3, 'PUBLIC_KEY')

❌ Unable to enable JIT for UTM on device 00008110-000538693638801E.
Could not connect to device 00008110-000538693638801E. The process 'python3' returned unexpected output. KeyError: EnumIntegerString.new(3, 'PUBLIC_KEY')

psiberfunk avatar Apr 17 '24 18:04 psiberfunk

same here iPadOS 17.5 (21F5048f) and Alt Server on Sonoma 14.4.1 (23E224)

orhid avatar Apr 22 '24 08:04 orhid

@shanegillio anything on this ? Kinda game breaking..

psiberfunk avatar May 04 '24 02:05 psiberfunk

bro same problem with ipad air running 17.2 with sonoma. :/

shinmorisawa avatar May 05 '24 08:05 shinmorisawa

Same here on 17.5 RC

cgorms avatar May 08 '24 16:05 cgorms

same here, 17.5

wandbrandon avatar May 17 '24 17:05 wandbrandon

facing same issue

ChristianKilduff avatar May 19 '24 02:05 ChristianKilduff

I was facing this same error, I'm on Mac OS 14.4, the target device was a iPad gen 9 on iOS 17.5.1 also the xcode (15.4) python version was 3.9

SpyterDev avatar Jun 16 '24 00:06 SpyterDev

Just run the Python yourself.

https://gist.github.com/tonycoco/66b08eea237ff64bf7becb54afb2e04d

tonycoco avatar Jun 20 '24 16:06 tonycoco

Just run the Python yourself.

https://gist.github.com/tonycoco/66b08eea237ff64bf7becb54afb2e04d

This hardly seems like a good solution to the core problem: The app has a menu item that's just plain broken on many macs. I'm not quite sure why the issue is getting ignored.

psiberfunk avatar Jun 22 '24 01:06 psiberfunk

any workaround available to use the menu item?

aabdellah avatar Jul 08 '24 11:07 aabdellah

How to solve this

ckyuex avatar Jul 26 '24 06:07 ckyuex

Just run the Python yourself.

gist.github.com/tonycoco/66b08eea237ff64bf7becb54afb2e04d

Thank you very much, the comment in your gist helped to resolve the issue:

If you're using AltStore you can just make sure you install the dependencies to the Python install that Xcode uses:

/Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m pip install -U pymobiledevice3==2.30.0 construct==2.10.69 qh3==0.15.1

apollovy avatar Nov 13 '24 00:11 apollovy

I just uploaded a video on youtube showing how to enable JIT on iOS 26 using Stik Debug. Watch it here: https://youtu.be/5F5GDwRHAec

orailnoor avatar Oct 18 '25 14:10 orailnoor