fritzlb / iOS17-JIT-WIN

Enable JIT on iOS 17 using a windows PC
GNU General Public License v3.0
125 stars 4 forks source link

Error mounting DiskImage #55

Closed Fadedlimes closed 2 months ago

Fadedlimes commented 2 months ago

I am getting this error whenever I try the JIT script for either of the apps I have tried it on (Provenance & RetroArch) Followed all the steps in the YT video just get stuck here every time.

D:\Downloads\iOS17-JIT-WIN-main>python jit_enabler_better.py org.provenance-emu.provenance.297QLPAFJG
Getting bundle ID...
Got bundle ID: org.provenance-emu.provenance.297QLPAFJG
starting tunnel to device...
This might take a while. In case it freezes, either close this window and kill every python process in task manager or simply reboot your PC.
Sucessfully created tunnel: fd16:faba:e515::1 49165
Manually trying to mount DeveloperDiskImage (this seems to prevent errors on some systems)...
Error mounting DiskImage : 2024-04-29 21:18:19 DESKTOP-F7RAFPK pymobiledevice3.restore.tss[13184] INFO Sending TSS request...
C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gs.apple.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'software4younow.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
Traceback (most recent call last):
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 162, in query_personalization_manifest
    return response['ImageSignature']
           ~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'ImageSignature'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 208, in mount
    manifest = self.query_personalization_manifest('DeveloperDiskImage', hashlib.sha384(image).digest())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 164, in query_personalization_manifest
    raise MissingManifestError()
pymobiledevice3.exceptions.MissingManifestError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 156, in <module>
    main()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 98, in main
    cli()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\cli_common.py", line 172, in wrap_callback_calling
    callback(service_provider=service_provider, **kwargs)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\mounter.py", line 120, in mounter_auto_mount
    auto_mount(service_provider, xcode=xcode, version=version)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 362, in auto_mount
    auto_mount_personalized(lockdown)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 355, in auto_mount_personalized
    PersonalizedImageMounter(lockdown=lockdown).mount(image, build_manifest, trustcache)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 211, in mount
    manifest = self.get_manifest_from_tss(plistlib.loads(build_manifest.read_bytes()))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 294, in get_manifest_from_tss
    response = request.send_receive()
               ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\restore\tss.py", line 776, in send_receive
    message = content.split(b'MESSAGE=', 1)[1].split(b'&', 1)[0].decode()
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
fritzlb commented 2 months ago

That shouldn't happen. Your PC does have an internet connection and there's nothing being blocked?

Fadedlimes commented 2 months ago

Yup, pc is very much connected to the internet or I wouldn’t have been able to post this issue, and my firewall isn’t blocking anything. I’ll run it with the debugging on when I get around to trying again later today maybe it’ll produce something of value.

Fadedlimes commented 2 months ago

Here is the output with the debugging turned on.


C:\WINDOWS\system32>set "params="

C:\WINDOWS\system32>cd /d "D:\Downloads\iOS17-JIT-WIN-main\"   && (if exist "D:\tmp\getadmin.vbs" del "D:\tmp\getadmin.vbs"  )  && fsutil dirty query C:   1>nul 2>nul  || (echo Set UAC = CreateObject("Shell.Application") : UAC.ShellExecute "cmd.exe", "/k cd ""D:\Downloads\iOS17-JIT-WIN-main\"" && ""D:\Downloads\iOS17-JIT-WIN-main\open terminal here.bat"" ", "", "runas", 1   1>>"D:\tmp\getadmin.vbs"  && "D:\tmp\getadmin.vbs"   && exit /B  )

D:\Downloads\iOS17-JIT-WIN-main>python jit_enabler_better.py {org.provenance-emu.provenance.297QLPAFJG} true
Getting bundle ID...
DEBUG mode specified.
Got bundle ID: {org.provenance-emu.provenance.297QLPAFJG}
starting tunnel to device...
This might take a while. In case it freezes, either close this window and kill every python process in task manager or simply reboot your PC.
Sucessfully created tunnel: fd40:48fd:70b1::1 49180
Manually trying to mount DeveloperDiskImage (this seems to prevent errors on some systems)...
2024-04-30 11:13:19 DESKTOP-F7RAFPK pymobiledevice3.restore.tss[20776] INFO Sending TSS request...
C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gs.apple.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'software4younow.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
Traceback (most recent call last):
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 162, in query_personalization_manifest
    return response['ImageSignature']
           ~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'ImageSignature'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 208, in mount
    manifest = self.query_personalization_manifest('DeveloperDiskImage', hashlib.sha384(image).digest())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 164, in query_personalization_manifest
    raise MissingManifestError()
pymobiledevice3.exceptions.MissingManifestError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 168, in <module>
    main()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 100, in main
    cli()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\cli_common.py", line 146, in wrap_callback_calling
    callback(service_provider=service_provider, **kwargs)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\mounter.py", line 120, in mounter_auto_mount
    auto_mount(service_provider, xcode=xcode, version=version)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 362, in auto_mount
    auto_mount_personalized(lockdown)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 355, in auto_mount_personalized
    PersonalizedImageMounter(lockdown=lockdown).mount(image, build_manifest, trustcache)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 211, in mount
    manifest = self.get_manifest_from_tss(plistlib.loads(build_manifest.read_bytes()))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 294, in get_manifest_from_tss
    response = request.send_receive()
               ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\restore\tss.py", line 776, in send_receive
    message = content.split(b'MESSAGE=', 1)[1].split(b'&', 1)[0].decode()
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Error mounting DiskImage : 2024-04-30 11:13:19 DESKTOP-F7RAFPK pymobiledevice3.restore.tss[20776] INFO Sending TSS request...
C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gs.apple.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'software4younow.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
Traceback (most recent call last):
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 162, in query_personalization_manifest
    return response['ImageSignature']
           ~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'ImageSignature'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 208, in mount
    manifest = self.query_personalization_manifest('DeveloperDiskImage', hashlib.sha384(image).digest())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 164, in query_personalization_manifest
    raise MissingManifestError()
pymobiledevice3.exceptions.MissingManifestError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 168, in <module>
    main()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 100, in main
    cli()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\cli_common.py", line 146, in wrap_callback_calling
    callback(service_provider=service_provider, **kwargs)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\mounter.py", line 120, in mounter_auto_mount
    auto_mount(service_provider, xcode=xcode, version=version)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 362, in auto_mount
    auto_mount_personalized(lockdown)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 355, in auto_mount_personalized
    PersonalizedImageMounter(lockdown=lockdown).mount(image, build_manifest, trustcache)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 211, in mount
    manifest = self.get_manifest_from_tss(plistlib.loads(build_manifest.read_bytes()))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 294, in get_manifest_from_tss
    response = request.send_receive()
               ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\restore\tss.py", line 776, in send_receive
    message = content.split(b'MESSAGE=', 1)[1].split(b'&', 1)[0].decode()
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Starting app...
(b'', b'C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\pymobiledevice3\\utils.py:55: DeprecationWarning: There is no current event loop\r\n  loop = asyncio.get_event_loop()\r\nTraceback (most recent call last):\r\n  File "<frozen runpy>", line 198, in _run_module_as_main\r\n  File "<frozen runpy>", line 88, in _run_code\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\pymobiledevice3\\__main__.py", line 168, in <module>\r\n    main()\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\pymobiledevice3\\__main__.py", line 100, in main\r\n    cli()\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\click\\core.py", line 1157, in __call__\r\n    return self.main(*args, **kwargs)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\click\\core.py", line 1078, in main\r\n    rv = self.invoke(ctx)\r\n         ^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\click\\core.py", line 1688, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\click\\core.py", line 1688, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\click\\core.py", line 1688, in invoke\r\n    return _process_result(sub_ctx.command.invoke(sub_ctx))\r\n                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\click\\core.py", line 1434, in invoke\r\n    return ctx.invoke(self.callback, **ctx.params)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\click\\core.py", line 783, in invoke\r\n    return __callback(*args, **kwargs)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\pymobiledevice3\\cli\\cli_common.py", line 146, in wrap_callback_calling\r\n    callback(service_provider=service_provider, **kwargs)\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\pymobiledevice3\\cli\\developer.py", line 205, in launch\r\n    pid = process_control.launch(bundle_id=parsed_arguments[0], arguments=parsed_arguments[1:],\r\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\pymobiledevice3\\services\\dvt\\instruments\\process_control.py", line 72, in launch\r\n    result = self._channel.receive_plist()\r\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\pymobiledevice3\\services\\remote_server.py", line 261, in receive_plist\r\n    return self._service.recv_plist(self)[0]\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\pymobiledevice3\\services\\remote_server.py", line 438, in recv_plist\r\n    data = archiver.unarchive(data)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 23, in unarchive\r\n    return Unarchive(plist).top_object()\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 267, in top_object\r\n    return self.decode_object(self.top_uid)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 258, in decode_object\r\n    obj = klass.decode_archive(ArchivedObject(raw_obj, self))\r\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\pymobiledevice3\\services\\remote_server.py", line 126, in decode_archive\r\n    user_info = archive_obj.decode(\'NSUserInfo\')\r\n                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 150, in decode\r\n    return self._unarchiver.decode_key(self.object, key)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 226, in decode_key\r\n    return self.decode_object(val)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 258, in decode_object\r\n    obj = klass.decode_archive(ArchivedObject(raw_obj, self))\r\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 109, in decode_archive\r\n    val = archive_obj.decode_index(val_uids[i])\r\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 147, in decode_index\r\n    return self._unarchiver.decode_object(index)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 258, in decode_object\r\n    obj = klass.decode_archive(ArchivedObject(raw_obj, self))\r\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\pymobiledevice3\\services\\remote_server.py", line 126, in decode_archive\r\n    user_info = archive_obj.decode(\'NSUserInfo\')\r\n                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 150, in decode\r\n    return self._unarchiver.decode_key(self.object, key)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 226, in decode_key\r\n    return self.decode_object(val)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 258, in decode_object\r\n    obj = klass.decode_archive(ArchivedObject(raw_obj, self))\r\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 109, in decode_archive\r\n    val = archive_obj.decode_index(val_uids[i])\r\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 147, in decode_index\r\n    return self._unarchiver.decode_object(index)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\bpylist2\\archiver.py", line 258, in decode_object\r\n    obj = klass.decode_archive(ArchivedObject(raw_obj, self))\r\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File "C:\\Users\\Benja\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\pymobiledevice3\\services\\remote_server.py", line 129, in decode_archive\r\n    raise DvtException(archive_obj.decode(\'NSUserInfo\'))\r\npymobiledevice3.exceptions.DvtException: {\'BSErrorCodeDescription\': \'NotFound\', \'NSLocalizedFailureReason\': \'Application info provider (FBSApplicationLibrary) returned nil for "{org.provenance-emu.provenance.297QLPAFJG}"\'}\r\n')
Error launching the app. Did you specify the correct bundle ID? : C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\utils.py:55: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 168, in <module>
    main()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 100, in main
    cli()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\cli_common.py", line 146, in wrap_callback_calling
    callback(service_provider=service_provider, **kwargs)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\developer.py", line 205, in launch
    pid = process_control.launch(bundle_id=parsed_arguments[0], arguments=parsed_arguments[1:],
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\dvt\instruments\process_control.py", line 72, in launch
    result = self._channel.receive_plist()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\remote_server.py", line 261, in receive_plist
    return self._service.recv_plist(self)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\remote_server.py", line 438, in recv_plist
    data = archiver.unarchive(data)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 23, in unarchive
    return Unarchive(plist).top_object()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 267, in top_object
    return self.decode_object(self.top_uid)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 258, in decode_object
    obj = klass.decode_archive(ArchivedObject(raw_obj, self))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\remote_server.py", line 126, in decode_archive
    user_info = archive_obj.decode('NSUserInfo')
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 150, in decode
    return self._unarchiver.decode_key(self.object, key)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 226, in decode_key
    return self.decode_object(val)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 258, in decode_object
    obj = klass.decode_archive(ArchivedObject(raw_obj, self))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 109, in decode_archive
    val = archive_obj.decode_index(val_uids[i])
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 147, in decode_index
    return self._unarchiver.decode_object(index)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 258, in decode_object
    obj = klass.decode_archive(ArchivedObject(raw_obj, self))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\remote_server.py", line 126, in decode_archive
    user_info = archive_obj.decode('NSUserInfo')
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 150, in decode
    return self._unarchiver.decode_key(self.object, key)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 226, in decode_key
    return self.decode_object(val)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 258, in decode_object
    obj = klass.decode_archive(ArchivedObject(raw_obj, self))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 109, in decode_archive
    val = archive_obj.decode_index(val_uids[i])
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 147, in decode_index
    return self._unarchiver.decode_object(index)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\bpylist2\archiver.py", line 258, in decode_object
    obj = klass.decode_archive(ArchivedObject(raw_obj, self))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\remote_server.py", line 129, in decode_archive
    raise DvtException(archive_obj.decode('NSUserInfo'))
pymobiledevice3.exceptions.DvtException: {'BSErrorCodeDescription': 'NotFound', 'NSLocalizedFailureReason': 'Application info provider (FBSApplicationLibrary) returned nil for "{org.provenance-emu.provenance.297QLPAFJG}"'}

I have checked again and my firewall is indeed fully disabled when trying this. (as well as I have tried using the pymobiledevice3 ver that is included in the install script and as well trying the newest build of pymobile3 both return the same error and output.)

I have no idea if its any help but a friend of mine far more familiar with code and python than me has suggested that

"I wonder if Apple disabled the endpoint recently from what I read in the source code, it tries multiple endpoints and they all seem to fail at least, it fails to reach whatever your log says I didn't try sending the same requests myself"

fritzlb commented 2 months ago

The newest version of pymobiledevice3 has some changes rendering it fully incompatible with the script as it is on iOS < 17.4, that's why I didn't update the version in the install script yet... What ios version are you on? In case it's 17.5 there really is a high chance apple changed something. Also I'll check this evening if the script still works for 17.4.1 on my devices to see whether Apple changed something with their servers (yes, starting from 17.4 mounting the developer image on the device requires apples stupid Auth servers...)

Fadedlimes commented 2 months ago

I am on 17.4.1. Noted on the newest pymobile build, will reinstall the older build again.

fritzlb commented 2 months ago

Yeah happens for me too will look into on how to fix that shortly

fritzlb commented 2 months ago

Just pushed a change that might fix your issue. Could you test it by redownloading and replacing at least the jit_enabler.py file (or even better reinstall everything)?

Fadedlimes commented 2 months ago

No dice ☹️ (cloned and zipped the new code and ran the install script as well)

C:\WINDOWS\system32>set "params="

C:\WINDOWS\system32>cd /d "D:\Downloads\iOS17-JIT-WIN-main\"   && (if exist "D:\tmp\getadmin.vbs" del "D:\tmp\getadmin.vbs"  )  && fsutil dirty query C:   1>nul 2>nul  || (echo Set UAC = CreateObject("Shell.Application") : UAC.ShellExecute "cmd.exe", "/k cd ""D:\Downloads\iOS17-JIT-WIN-main\"" && ""D:\Downloads\iOS17-JIT-WIN-main\open terminal here.bat"" ", "", "runas", 1   1>>"D:\tmp\getadmin.vbs"  && "D:\tmp\getadmin.vbs"   && exit /B  )

D:\Downloads\iOS17-JIT-WIN-main>python jit_enabler_better.py {org.provenance-emu.provenance.297QLPAFJG}
Getting bundle ID...
Got bundle ID: {org.provenance-emu.provenance.297QLPAFJG}
starting tunnel to device...
This might take a while. In case it freezes, either close this window and kill every python process in task manager or simply reboot your PC.
Sucessfully created tunnel: fdc5:ab2b:bbf1::1 49184
Manually trying to mount DeveloperDiskImage (this seems to prevent errors on some systems)...
Mounting DiskImage failed. Trying the alternative method...
Error mounting DiskImage : 2024-04-30 15:06:37 DESKTOP-F7RAFPK pymobiledevice3.restore.tss[7328] INFO Sending TSS request...
C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gs.apple.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'software4younow.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
Traceback (most recent call last):
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 162, in query_personalization_manifest
    return response['ImageSignature']
           ~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'ImageSignature'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 208, in mount
    manifest = self.query_personalization_manifest('DeveloperDiskImage', hashlib.sha384(image).digest())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 164, in query_personalization_manifest
    raise MissingManifestError()
pymobiledevice3.exceptions.MissingManifestError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 156, in <module>
    main()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 98, in main
    cli()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\cli_common.py", line 172, in wrap_callback_calling
    callback(service_provider=service_provider, **kwargs)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\mounter.py", line 120, in mounter_auto_mount
    auto_mount(service_provider, xcode=xcode, version=version)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 362, in auto_mount
    auto_mount_personalized(lockdown)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 355, in auto_mount_personalized
    PersonalizedImageMounter(lockdown=lockdown).mount(image, build_manifest, trustcache)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 211, in mount
    manifest = self.get_manifest_from_tss(plistlib.loads(build_manifest.read_bytes()))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 294, in get_manifest_from_tss
    response = request.send_receive()
               ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\restore\tss.py", line 776, in send_receive
    message = content.split(b'MESSAGE=', 1)[1].split(b'&', 1)[0].decode()
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

Error using alterntive method : 2024-04-30 15:06:39 DESKTOP-F7RAFPK pymobiledevice3.restore.tss[8004] INFO Sending TSS request...
C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gs.apple.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'software4younow.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
Traceback (most recent call last):
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 162, in query_personalization_manifest
    return response['ImageSignature']
           ~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'ImageSignature'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 208, in mount
    manifest = self.query_personalization_manifest('DeveloperDiskImage', hashlib.sha384(image).digest())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 164, in query_personalization_manifest
    raise MissingManifestError()
pymobiledevice3.exceptions.MissingManifestError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 156, in <module>
    main()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 98, in main
    cli()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\cli_common.py", line 172, in wrap_callback_calling
    callback(service_provider=service_provider, **kwargs)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\mounter.py", line 120, in mounter_auto_mount
    auto_mount(service_provider, xcode=xcode, version=version)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 362, in auto_mount
    auto_mount_personalized(lockdown)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 355, in auto_mount_personalized
    PersonalizedImageMounter(lockdown=lockdown).mount(image, build_manifest, trustcache)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 211, in mount
    manifest = self.get_manifest_from_tss(plistlib.loads(build_manifest.read_bytes()))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 294, in get_manifest_from_tss
    response = request.send_receive()
               ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\restore\tss.py", line 776, in send_receive
    message = content.split(b'MESSAGE=', 1)[1].split(b'&', 1)[0].decode()
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
fritzlb commented 2 months ago

Just forgot to ask but I'm gonna assume the device is unlocked while you try this, it trusts your PC and is detected by iTunes (directly from Apple). Then could you maybe manually open a terminal as administrator and run 'python -m pymobiledevice3 remote start-tunnel' and then in another window 'python -m pymobiledevice3 mounter auto-mount --rsd ...' where you replace ... with the according values from the first window?

Fadedlimes commented 2 months ago

To confirm above: -iTunes is detecting the phone, iTunes is downloaded directly from apple not from the MS store -Phone is always on and unlocked when I run the script/the new commands given -The "trust this computer" prompt doesn't usually appear, it's very random. If I restart my pc, it sometimes asks to trust the computer, but if I am just plugging it in after the system's been online, or I have tried once, it doesn't ask again (I am assuming this is just because the device already had permission) -and just as an added thing, using tools such as Altstore or other side loading tools and apps, I have 0 issues loading IPA's onto the device or interacting with it. -Firewall is fully disabled

Here is the output from the second console after inputting the values from the first console.

Microsoft Windows [Version 10.0.19045.4291]
(c) Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>python -m pymobiledevice3 mounter auto-mount --rsd 49186
Error: Option '--rsd' requires 2 arguments.

C:\WINDOWS\system32>python -m pymobiledevice3 mounter auto-mount --rsd fd42:d55d:752a::1 49186
2024-04-30 15:47:37 DESKTOP-F7RAFPK pymobiledevice3.restore.tss[19364] INFO Sending TSS request...
C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'gs.apple.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py:1103: InsecureRequestWarning: Unverified HTTPS request is being made to host 'software4younow.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
Traceback (most recent call last):
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 162, in query_personalization_manifest
    return response['ImageSignature']
           ~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'ImageSignature'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 208, in mount
    manifest = self.query_personalization_manifest('DeveloperDiskImage', hashlib.sha384(image).digest())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 164, in query_personalization_manifest
    raise MissingManifestError()
pymobiledevice3.exceptions.MissingManifestError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 156, in <module>
    main()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\__main__.py", line 98, in main
    cli()
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\cli_common.py", line 172, in wrap_callback_calling
    callback(service_provider=service_provider, **kwargs)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\cli\mounter.py", line 120, in mounter_auto_mount
    auto_mount(service_provider, xcode=xcode, version=version)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 362, in auto_mount
    auto_mount_personalized(lockdown)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 355, in auto_mount_personalized
    PersonalizedImageMounter(lockdown=lockdown).mount(image, build_manifest, trustcache)
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 211, in mount
    manifest = self.get_manifest_from_tss(plistlib.loads(build_manifest.read_bytes()))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\services\mobile_image_mounter.py", line 294, in get_manifest_from_tss
    response = request.send_receive()
               ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Benja\AppData\Local\Programs\Python\Python312\Lib\site-packages\pymobiledevice3\restore\tss.py", line 776, in send_receive
    message = content.split(b'MESSAGE=', 1)[1].split(b'&', 1)[0].decode()
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

& just in case it's relevant or needed, here is the output of the first console

C:\WINDOWS\system32>python -m pymobiledevice3 remote start-tunnel
2024-04-30 15:45:50 DESKTOP-F7RAFPK wintun[16308] INFO WeTestUsbNcm driver use current version: 11.36.59.886, [11.36.59.886] tested.
2024-04-30 15:45:50 DESKTOP-F7RAFPK wintun[16308] INFO WetestUsbFilter driver use current version: 11.36.33.666, [11.36.33.666] tested.
2024-04-30 15:45:50 DESKTOP-F7RAFPK wintun[16308] INFO use existing WeTestUsbFilter driver.
2024-04-30 15:45:50 DESKTOP-F7RAFPK wintun[16308] INFO use existing WeTestUsbNcm driver.
2024-04-30 15:45:53 DESKTOP-F7RAFPK wintun[16308] INFO Failed to find matching adapter name: Element not found. (Code 0x00000490)
2024-04-30 15:45:53 DESKTOP-F7RAFPK wintun[16308] INFO Waiting for existing driver to unload from kernel
2024-04-30 15:45:53 DESKTOP-F7RAFPK wintun[16308] INFO Removing existing driver 0.14
2024-04-30 15:45:53 DESKTOP-F7RAFPK wintun[16308] INFO Installing driver 15.14
2024-04-30 15:45:53 DESKTOP-F7RAFPK wintun[16308] INFO Extracting driver
2024-04-30 15:45:53 DESKTOP-F7RAFPK wintun[16308] INFO Installing driver
2024-04-30 15:45:53 DESKTOP-F7RAFPK wintun[16308] INFO Creating adapter
2024-04-30 15:45:54 DESKTOP-F7RAFPK pymobiledevice3.cli.remote[16308] INFO tunnel created
UDID: 00008101-0006004C36E8001E
ProductType: iPhone13,1
ProductVersion: 17.4.1
Interface: wintun
Protocol: TunnelProtocol.QUIC
RSD Address: fd42:d55d:752a::1
RSD Port: 49186
Use the follow connection option:
--rsd fd42:d55d:752a::1 49186
2024-04-30 15:45:54 DESKTOP-F7RAFPK wintun[16308] INFO Removed orphaned adapter "wintun 1"

(I don't know why it reports iPhone 13,1 my device is an iPhone 12 mini)

fritzlb commented 2 months ago

Thanks for the clarification and the additional details, I appreciate it! The model identifier of an iPhone 12 really is iPhone13,X (and of an 11 12,X), that's just Apple being weird.

Tbh I really don't know why it works on my system but not on yours. Yesterday for me I did get the same error but then fixed it with the commands on my message above. Also when I used the start-tunnel command I had to trust the computer, but with your log that really doesn't seem to be the main issue here. One last idea: a little time ago there's been someone who had an issue where an application on their PC disconnected wifi as soon as a wired connection existed and the iPhone over the WeTest driver was detected as such a wired connection. Is there anything else weird happening while the tunnel is open?

What I am pretty sure about now is that the issue is related to probably either your specific setup or pymobiledevice3. In case running those commands in the latest version of that library you could try to open an issue over there, but I fear it's really hard to debug of it's only happening for you

Fadedlimes commented 2 months ago

The only things I can think about my set-up in particular is that I have a NAS hooked up to my machine, as well as I am not directly connected to my router and am plugged into a network booster. Either way, thank you for your time, it was greatly appreciated even if it didn't resolve my issue! For now, I think I will try the VMmac method or wait till next month and pick up a decently cheap MacBook from someone in town.

fritzlb commented 2 months ago

Thank you for the update! You could always try sidejitserver on windows (even if that is based on pymobiledevice3, too). Hopefully you‘ll get JIT working soon :)