altstoreio / AltStore

AltStore is an alternative app store for non-jailbroken iOS devices.
https://altstore.io
GNU Affero General Public License v3.0
11.23k stars 853 forks source link

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

Open jaydenchan1027 opened 3 months ago

jaydenchan1027 commented 3 months ago

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

larsdante commented 3 months ago

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

larsdante commented 3 months ago

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!

dylanchapell commented 3 months ago

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

deargosep commented 3 months ago

Happens to me on ios 17.2.1

RockChinQ commented 1 month ago

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

hyhcrh commented 1 month ago

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

psiberfunk commented 1 month ago

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')
orhid commented 1 month ago

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

psiberfunk commented 4 weeks ago

@shanegillio anything on this ? Kinda game breaking..

TryhardPickles commented 4 weeks ago

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

cgorms commented 3 weeks ago

Same here on 17.5 RC

wandbrandon commented 2 weeks ago

same here, 17.5

WanderingCat27 commented 2 weeks ago

facing same issue