#iOS Patches Failing to Download in All Flavors

1 messages · Page 1 of 1 (latest)

radiant owl
#

I'm encountering an issue with patch deployments to iOS when using Fastlane. I'm using Fastlane to automate the creation of Shorebird releases and the deployment of my app, including patch uploads.

My app has multiple flavors with the following app IDs:

dev: 08a0dc1a-5ef4-4fa5-bd44-3d971168197e
local: 739d3c04-b78f-44e2-a039-ce802e78ad3f
pre: e870dd89-73d0-4a9f-b871-05281b9b2b88
prod: 468b06f1-b6f5-4830-b771-58451b785b44
The problem is that patches are only being downloaded and applied correctly in the dev environment on iOS. The local, pre, and prod environments on iOS are not downloading the patches. Android deployments work as expected across all flavors.

Has anyone else experienced this issue, or does anyone have suggestions for troubleshooting? I would appreciate any assistance!

Thanks!

tough dagger
#

Did you create patches for each flavor? I can check in a few minutes

radiant owl
#

Yes, I created separate patches for dev, pre, and prod

tough dagger
#

Can you share the full device logs?

radiant owl
#

Pre:1.20.20+2025041401
Prod: 1.20.19+2025040101
Dev: 1.21.0+2025041101

tough dagger
#

Sorry I meant the full device logs

radiant owl
#

In a few minutes I'll share the logs with you.

tough dagger
#

the logs should contain the full patch check request

#

thanks!

radiant owl
#

Here are the shorebird logs
predeterminado 11:20:32.644393-0300 Runner [shorebird] Reporting launch start.
predeterminado 11:20:32.644417-0300 Runner [INFO:flutter/shell/common/shorebird/shorebird.cc(286)] Starting Shorebird update
predeterminado 11:20:32.644963-0300 Runner [shorebird] Sending patch check request: PatchCheckRequest { app_id: "08a0dc1a-5ef4-4fa5-bd44-3d971168197e", channel: "stable", release_version: "1.20.17+2025012401", platform: "ios", arch: "aarch64" }
predeterminado 11:20:32.649374-0300 Runner [shorebird] Reporting successful launch.
predeterminado 11:20:33.049844-0300 Runner [shorebird] Patch check response: PatchCheckResponse { patch_available: true, patch: Some(Patch { number: 2, hash: "dd4fc832718f4208275228c6473a1a53d2423cf5a07df75db1cf870ed39adcbd", download_url: "https://cdn.shorebird.cloud/api/v1/patches/08a0dc1a-5ef4-4fa5-bd44-3d971168197e/ios/aarch64/148507/dlc.vmcode", hash_signature: None }), rolled_back_patch_numbers: Some([]) }
falla 11:20:35.458365-0300 Runner [shorebird] Update failed: failed to fill whole buffer
predeterminado 11:20:35.458383-0300 Runner [shorebird] Update thread finished with status: Update had error
falla 11:20:35.458513-0300 Runner [shorebird] Decompression thread failed: pipe reader has been dropped

tough dagger
#

looks like the patch was unable to be installed

falla    11:20:35.458365-0300    Runner    [shorebird] Update failed: failed to fill whole buffer
predeterminado    11:20:35.458383-0300    Runner    [shorebird] Update thread finished with status: Update had error
falla    11:20:35.458513-0300    Runner    [shorebird] Decompression thread failed: pipe reader has been dropped
#

If you uninstall then reinstall the app does the issue persist?

radiant owl
#

Yes, I have uninstalled and reinstalled the app, but the issue persists. Furthermore, I've noticed something strange in the logs. The app_id shown in the Shorebird log is for the development (dev) flavor, even though I am using the pre-production (pre) version. This issue only occurs on iOS; it works correctly on Android. The log shows:
[shorebird] Sending patch check request: PatchCheckRequest { app_id: "08a0dc1a-5ef4-4fa5-bd44-3d971168197e", channel: "stable", release_version: "1.20.21+2025041402", platform: "ios", arch: "aarch64" }

tough dagger
#

Are you positive you built the release with the correct flavor flag?

#

shorebird release ios --flavor <FLAVOR>

radiant owl
#

Yes, I built the release with the correct flavor flag. I've confirmed on the Shorebird dashboard that it was successfully added to the pre app, and the patch is on the latest version.

tough dagger
#

how are you running the app?

#

Are you using shorebird preview?

radiant owl
#

I'm deploying with fastline and downloading the app from testflight
No, I am not using Shorebird preview.

tough dagger
#

Are you able to reproduce using shorebird preview?