altstoreio / AltStore

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

Cannot install, cannot update #414

Open xoniq opened 4 years ago

xoniq commented 4 years ago

Currently I'm running the Big Sur betas, en running the AltServer beta. I freshly downloaded the latest beta version 1.4b2 from the website (beta page), and tried to install AltStore on my iPhone 11 (iOS 14.2). It throws an error:

"The operation couldn't be completed. Could not find matching provisioning profile."

Then I saw that the AltServer app also have an update, but when I try to update to 14.2, it throws:

"Update error! An error occurred while extracting the archive. Please try again later."

Quite a generic error with no way to solve on my own. Also tried 3 branches of AltServer from here on GitHub, nothing works/helps.

Any thoughts?

bingxyz commented 3 years ago

I also encountered this problem.

EricRabil commented 3 years ago

These are the logs printed when the error message shows up:

default 23:50:42.640185-0500    AltServer   0x11b9c6e10 - PerformanceMonitor::measureCPUUsageInActivityState: Process is using 0.4% CPU in state: VisibleNonActive
default 23:50:42.981853-0500    AltServer   0x11b9c6c80 - [pageID=0, frameID=0, main=1] FrameLoader::stopAllLoaders: Clearing provisional document loader (m_provisionalDocumentLoader=0x0)
default 23:50:42.981879-0500    AltServer   0x11b9c6c80 - [pageID=0, frameID=0, main=1] FrameLoader::setProvisionalDocumentLoader: Setting provisional document loader (m_provisionalDocumentLoader=0x0)
default 23:50:42.982511-0500    AltServer   0x11b9c6e10 - PerformanceMonitor::measureCPUUsageInActivityState: Process is using 10.4% CPU in state: VisibleAndActive
default 23:50:42.982577-0500    AltServer   0x11b9c6e10 - PerformanceMonitor::measureCPUUsageInActivityState: Process is using 104.7% CPU in state: VisibleNonActive
default 23:50:42.998303-0500    AltServer   0x11b9c6c80 - [pageID=0, frameID=0, main=1] FrameLoader::stopAllLoaders: Clearing provisional document loader (m_provisionalDocumentLoader=0x0)
default 23:50:42.998342-0500    AltServer   0x11b9c6c80 - [pageID=0, frameID=0, main=1] FrameLoader::setProvisionalDocumentLoader: Setting provisional document loader (m_provisionalDocumentLoader=0x0)
default 23:50:43.024030-0500    AltServer   Task <EC6A59E3-86A1-4002-9204-812035824163>.<1> resuming, timeouts(60.0, 604800.0) QOS(0x21) Voucher <OS_voucher: 0x7f8d5d07a250>
default 23:50:43.024271-0500    AltServer   [Telemetry]: Activity <nw_activity 12:2 [1B08C6B2-A36F-4538-9180-8792A78C33A4] (reporting strategy default)> on Task <EC6A59E3-86A1-4002-9204-812035824163>.<1> was not selected for reporting
default 23:50:43.024689-0500    AltServer   Task <EC6A59E3-86A1-4002-9204-812035824163>.<1> {strength 1, tls 8, ct 0, sub 0, sig 0, ciphers 1, bundle 0, builtin 0}
default 23:50:43.024900-0500    AltServer   Connection 6: enabling TLS
default 23:50:43.024916-0500    AltServer   Connection 6: starting, TC(0x0)
default 23:50:43.024939-0500    AltServer   [C6 E5463E0B-3D6C-4AF9-8A3F-22BA527BBC34 f000.backblazeb2.com:443 tcp, url hash: 2d2e224d, tls, context: com.apple.CFNetwork.NSURLSession.{D9FAFB91-99FB-483F-9609-8235AA8D17C4}{(null)}{Y}{2}, proc: 549D0AD3-D8A9-3F14-BBE7-7DA89519D050] start
default 23:50:43.024980-0500    AltServer   [C6 f000.backblazeb2.com:443 initial path ((null))] event: path:start @0.000s
default 23:50:43.025110-0500    AltServer   [C6 f000.backblazeb2.com:443 waiting path (satisfied (Path is satisfied), interface: en5, ipv4, dns)] event: path:satisfied @0.000s, uuid: C9448608-FE2C-4B66-AD54-8E5933B925CA
default 23:50:43.025188-0500    AltServer   [C6 f000.backblazeb2.com:443 in_progress resolver (satisfied (Path is satisfied), interface: en5, ipv4, dns)] event: resolver:start_dns @0.000s
default 23:50:43.025208-0500    AltServer   nw_connection_report_state_with_handler_on_nw_queue [C6] reporting state preparing
default 23:50:43.025285-0500    AltServer   Task <EC6A59E3-86A1-4002-9204-812035824163>.<1> setting up Connection 6
default 23:50:43.025901-0500    AltServer   [C6 f000.backblazeb2.com:443 in_progress resolver (satisfied (Path is satisfied), interface: en5, ipv4, dns)] event: resolver:receive_dns @0.000s
default 23:50:43.026155-0500    AltServer   [C6.1 104.153.233.177:443 initial path ((null))] event: path:start @0.001s
default 23:50:43.026314-0500    AltServer   [C6.1 104.153.233.177:443 waiting path (satisfied (Path is satisfied), interface: en5, ipv4, dns)] event: path:satisfied @0.001s, uuid: 2C895184-B06B-4540-8CE4-CCF358FA11F7
default 23:50:43.026591-0500    AltServer   [C6.1 104.153.233.177:443 in_progress socket-flow (satisfied (Path is satisfied), interface: en5, ipv4, dns)] event: flow:start_connect @0.001s
default 23:50:43.109194-0500    AltServer   nw_socket_handle_socket_event [C6.1:3] Socket received CONNECTED event
default 23:50:43.109335-0500    AltServer   nw_flow_connected [C6.1 104.153.233.177:443 in_progress socket-flow (satisfied (Path is satisfied), viable, interface: en5, ipv4, dns)] Transport protocol connected
default 23:50:43.109433-0500    AltServer   [C6.1 104.153.233.177:443 in_progress socket-flow (satisfied (Path is satisfied), viable, interface: en5, ipv4, dns)] event: flow:finish_transport @0.084s
default 23:50:43.109474-0500    AltServer   [C6 f000.backblazeb2.com:443 in_progress resolver (satisfied (Path is satisfied), interface: en5, ipv4, dns)] event: flow:finish_transport @0.084s
default 23:50:43.109735-0500    AltServer   boringssl_session_apply_protocol_options_for_transport_block_invoke(1689) [C6.1:2][0x7f8d5d0902b0] TLS configured [min_version(0x0303) max_version(0x0304) name(<private>) tickets(false) false_start(false) enforce_ev(false) enforce_ats(false)]
default 23:50:43.109822-0500    AltServer   boringssl_context_info_handler(1821) [C6.1:2][0x7f8d5d0902b0] Client handshake started
default 23:50:43.109958-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client enter_early_data
default 23:50:43.110115-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client read_server_hello
default 23:50:43.197063-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client read_server_certificate
default 23:50:43.197125-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client read_certificate_status
default 23:50:43.197150-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client verify_server_certificate
default 23:50:43.197360-0500    AltServer   boringssl_context_evaluate_trust_async(1510) [C6.1:2][0x7f8d5d0902b0] Performing external trust evaluation
default 23:50:43.197422-0500    AltServer   boringssl_context_evaluate_trust_async_external(1495) [C6.1:2][0x7f8d5d0902b0] Asyncing for external verify block
default 23:50:43.197518-0500    AltServer   Connection 6: asked to evaluate TLS Trust
default 23:50:43.197741-0500    AltServer   Task <EC6A59E3-86A1-4002-9204-812035824163>.<1> auth completion disp=1 cred=0x0
default 23:50:43.202346-0500    AltServer   System Trust Evaluation yielded status(0)
default 23:50:43.206217-0500    AltServer   Connection 6: TLS Trust result 0
default 23:50:43.206237-0500    AltServer   boringssl_context_evaluate_trust_async_external_block_invoke_3(1451) [C6.1:2][0x7f8d5d0902b0] Returning from external verify block with result: true
default 23:50:43.206278-0500    AltServer   boringssl_context_certificate_verify_callback(1609) [C6.1:2][0x7f8d5d0902b0] Certificate verification result: OK
default 23:50:43.206377-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client read_server_key_exchange
default 23:50:43.206592-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client read_certificate_request
default 23:50:43.206634-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client read_server_hello_done
default 23:50:43.206653-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client send_client_certificate
default 23:50:43.206670-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client send_client_key_exchange
default 23:50:43.206957-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client send_client_certificate_verify
default 23:50:43.206974-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client send_client_finished
default 23:50:43.207043-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client finish_flight
default 23:50:43.207140-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client read_session_ticket
default 23:50:43.207159-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client process_change_cipher_spec
default 23:50:43.290832-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client read_server_finished
default 23:50:43.291003-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client finish_client_handshake
default 23:50:43.291119-0500    AltServer   boringssl_context_info_handler(1836) [C6.1:2][0x7f8d5d0902b0] Client handshake state: TLS client done
default 23:50:43.291224-0500    AltServer   boringssl_context_info_handler(1826) [C6.1:2][0x7f8d5d0902b0] Client handshake done
default 23:50:43.291564-0500    AltServer   nw_protocol_boringssl_signal_connected(734) [C6.1:2][0x7f8d5d0902b0] TLS connected [version(0x0303) ciphersuite(TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) group(0x0017) signature_alg(0x0804) alpn(nil) resumed(0) offered_ticket(0) false_started(0) ocsp_received(0) sct_received(0) connect_time(182ms) flight_time(171ms) rtt(85ms) write_stalls(0) read_stalls(4)]
default 23:50:43.291635-0500    AltServer   nw_flow_connected [C6.1 104.153.233.177:443 in_progress socket-flow (satisfied (Path is satisfied), viable, interface: en5, ipv4, dns)] Output protocol connected
default 23:50:43.291800-0500    AltServer   [C6.1 104.153.233.177:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en5, ipv4, dns)] event: flow:finish_connect @0.266s
default 23:50:43.291933-0500    AltServer   nw_connection_report_state_with_handler_on_nw_queue [C6] reporting state ready
default 23:50:43.292067-0500    AltServer   [C6 f000.backblazeb2.com:443 ready resolver (satisfied (Path is satisfied), interface: en5, ipv4, dns)] event: flow:finish_connect @0.267s
default 23:50:43.292232-0500    AltServer   [C6.1 104.153.233.177:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en5, ipv4, dns)] event: flow:changed_viability @0.267s
default 23:50:43.292274-0500    AltServer   [C6 f000.backblazeb2.com:443 ready resolver (satisfied (Path is satisfied), interface: en5, ipv4, dns)] event: flow:changed_viability @0.267s
default 23:50:43.292316-0500    AltServer   Connection 6: connected successfully
default 23:50:43.292346-0500    AltServer   Connection 6: TLS handshake complete
default 23:50:43.292443-0500    AltServer   Connection 6: ready C(N) E(N)
default 23:50:43.292577-0500    AltServer   Task <EC6A59E3-86A1-4002-9204-812035824163>.<1> now using Connection 6
default 23:50:43.292623-0500    AltServer   Connection 6: received viability advisory(Y)
default 23:50:43.292738-0500    AltServer   Task <EC6A59E3-86A1-4002-9204-812035824163>.<1> sent request, body N 0
default 23:50:43.382615-0500    AltServer   Task <EC6A59E3-86A1-4002-9204-812035824163>.<1> received response, status 200 content K
default 23:50:44.289769-0500    AltServer   Task <EC6A59E3-86A1-4002-9204-812035824163>.<1> response ended
default 23:50:44.289824-0500    AltServer   Task <EC6A59E3-86A1-4002-9204-812035824163>.<1> done using Connection 6
default 23:50:44.289942-0500    AltServer   Task <EC6A59E3-86A1-4002-9204-812035824163>.<1> summary for task success {transaction_duration_ms=1265, response_status=200, connection=6, protocol="http/1.1", domain_lookup_duration_ms=0, connect_duration_ms=265, secure_connection_duration_ms=182, request_start_ms=268, request_duration_ms=0, response_start_ms=358, response_duration_ms=907, request_bytes=220, response_bytes=8993045, cache_hit=0}
default 23:50:44.291971-0500    AltServer   Extracting using '/usr/bin/ditto' '-x' '-k' '-' < '/Users/ericrabil/Library/Caches/com.rileytestut.AltServer.Beta/org.sparkle-project.Sparkle/PersistentDownloads/6onSAsm6H/AltServer 40/1_4_1.zip' '/Users/ericrabil/Library/Caches/com.rileytestut.AltServer.Beta/org.sparkle-project.Sparkle/PersistentDownloads/6onSAsm6H/AltServer 40'
default 23:50:44.302169-0500    AltServer   Task <EC6A59E3-86A1-4002-9204-812035824163>.<1> finished successfully
default 23:50:44.302345-0500    AltServer   Connection 6: cleaning up
default 23:50:44.302392-0500    AltServer   [C6 E5463E0B-3D6C-4AF9-8A3F-22BA527BBC34 f000.backblazeb2.com:443 tcp, url hash: 2d2e224d, tls] cancel
default 23:50:44.302472-0500    AltServer   [C6 E5463E0B-3D6C-4AF9-8A3F-22BA527BBC34 f000.backblazeb2.com:443 tcp, url hash: 2d2e224d, tls] cancelled
    [C6.1 2C895184-B06B-4540-8CE4-CCF358FA11F7 192.168.1.12:60067<->104.153.233.177:443]
    Connected Path: satisfied (Path is satisfied), viable, interface: en5, ipv4, dns
    Duration: 1.277s, DNS @0.000s took 0.000s, TCP @0.001s took 0.083s, TLS 1.2 took 0.182s
    bytes in/out: 9027610/892, packets in/out: 6348/3, rtt: 0.082s, retransmitted bytes: 0, out-of-order bytes: 4087861
default 23:50:44.302727-0500    AltServer   nw_flow_disconnected [C6.1 104.153.233.177:443 cancelled socket-flow ((null))] Output protocol disconnected
default 23:50:44.302781-0500    AltServer   nw_connection_report_state_with_handler_on_nw_queue [C6] reporting state cancelled
error   23:50:46.382807-0500    AltServer   Code signature of the new version doesn't match the old version: anchor apple generic and identifier "com.rileytestut.AltServer.Beta" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = "6XVY5G3U44"). Please ensure that old and new app is signed using exactly the same certificate.
default 23:50:46.387744-0500    AltServer   old info: {
    build = 27;
    format = "app bundle with Mach-O thin (x86_64)";
    identifier = "com.rileytestut.AltServer.Beta";
    requirements = "designated => anchor apple generic and identifier \"com.rileytestut.AltServer.Beta\" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = \"6XVY5G3U44\")\n";
    "signing-time" = "2020-07-27 18:49:35 +0000";
    teamid = 6XVY5G3U44;
    version = "1.4b1";
}
default 23:50:46.388046-0500    AltServer   new info: {
    build = 40;
    format = "app bundle with Mach-O universal (x86_64 arm64)";
    identifier = "com.rileytestut.AltServer";
    requirements = "designated => anchor apple generic and identifier \"com.rileytestut.AltServer\" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = \"6XVY5G3U44\")\n";
    "signing-time" = "2020-10-26 19:16:46 +0000";
    teamid = 6XVY5G3U44;
    version = "1.4.1";
}
error   23:50:46.388237-0500    AltServer   The update archive isn't signed with an EdDSA key, and the app is signed with a new Code Signing identity that doesn't match code signing of the original app: (null). At least one method of signature verification must be valid. The update will be rejected.

How I worked around it:

There's a log line stating

default 23:50:44.291971-0500    AltServer   Extracting using '/usr/bin/ditto' '-x' '-k' '-' < '/Users/ericrabil/Library/Caches/com.rileytestut.AltServer.Beta/org.sparkle-project.Sparkle/PersistentDownloads/6onSAsm6H/AltServer 40/1_4_1.zip' '/Users/ericrabil/Library/Caches/com.rileytestut.AltServer.Beta/org.sparkle-project.Sparkle/PersistentDownloads/6onSAsm6H/AltServer 40'

Without clicking Cancel Update, go to the path in this log statement (your path will not exactly match mine) and manually extract the updated app.

parzydlo commented 3 years ago

@EricRabil Should I be executing the same command for archive extraction? The target directory in PersistentDownloads gets cleared once I hit the 'Cancel Update' button taking me back to square one.

EricRabil commented 3 years ago

@parzydlo copy the contents of PersistentDownloads elsewhere, then hit cancel update. Then do what you want with the contents

parzydlo commented 3 years ago

@EricRabil yeah thanks, so it seems the version 1.4b2 updates to 1.4.1 (40). This version does not work on Big Sur as it requires the mail plugin, so OP's problem is not solved. I am also experiencing the same error on 1.4b2: "The operation couldn't be completed. Could not find matching provisioning profile."

Somebody suggested updating the app in another issue - this obviously does not resolve the original problem as the updater downloads a non-beta version.

EDIT: Unlike OP I'm on iOS 13.1.3

EricRabil commented 3 years ago

1.4.1 is working on Big Sur for me, but I already had AMFI and SIP disabled.

As for the app itself, I'm not sure what to tell you as I'm running a homemade build of AltStore.

parzydlo commented 3 years ago

How did you get the Mail plugin to work then? For me the 1.4.1 version will not work without it.

shanegillio commented 1 year ago

hi there! sorry for the lack of response - are you still experiencing issues?