#Issue while building a patch of IOS app

1 messages · Page 1 of 1 (latest)

green chasm
#

im getting this issue
dart::kernel::TranslationHelper::DartString macos_simarm64
shorebird patch "Failed to create snapshot" "macos_simarm64" arm64
site:github.com/shorebirdtech/shorebird TranslationHelper DartString segfault

while trying build a patch of my IOS app, i remember when i push this build to app store.. i tested a patch it worked just fine, after that i followed all the guidelines of not updating packages and other things (since i already faced an old issue while pushing a patch due to this reason)

now im trying to push a patch and this happens, i searched for it on github and found those relevant issues:
https://github.com/shorebirdtech/shorebird/issues/3354
https://github.com/shorebirdtech/shorebird/issues/2788
https://github.com/shorebirdtech/shorebird/issues/3470
https://github.com/shorebirdtech/shorebird/pull/3406

tried of the suggestions like unset FLUTTER_ROOT it didnt help

why does it keep happening, if everytime i decide to rely on shorebird to patch an update im gonna face an issue, then there is no point in using it in the first place

here is my app id: 270bb1ba-b9b3-4920-880c-8d58b9d4304a

GitHub

App ID: bd50d03b-174a-4b3a-a39a-e1f402e19d18 Description shorebird patch ios consistently crashes with a segmentation fault during AOT compilation at dart::kernel::TranslationHelper::DartString(), ...

GitHub

i build ipa from my app using shorebird release ios and it build successfully i created update to my app and run shorebird patch ios but it crach and here is log content Command: shorebird patch io...

GitHub

Description When running shorebird patch for iOS, the build completes successfully and the IPA is created, but the process crashes during snapshot creation with a segmentation fault. The crash occu...

GitHub

This should cause shorebird doctor and shorebird * ios to warn about FLUTTER_ROOT overrides which are believed to cause #2788?

boreal rampart
#

Let's ping @sour ivy if he can help

sour ivy
#

Yeah the most common cause of this is that the Xcode ends up using a different version of Flutter than your outer version of Flutter.

#

So we call into Xcode using one version of Flutter but then Xcode overrides that and uses a different version of Flutter.

#

I think all the cases that we found of this searching for "FLUTTER_" In your Xcode files, I have found the issue

#

e.g. grep -r FLUTTER_ ios or similar.

#

I think old versions of FVM would get people into this scenario.

green chasm
#

Hi Eric
so apparently i was able to figure it out by manually replacing anything related to the path within the same project
sed -i '' '/FLUTTER_ROOT = /Users/******/Development/flutter;/d' ios/Runner.xcodeproj/project.pbxproj

then i verfied that flutter root is gone from the project after that the issue is gone ..
i'll try to build it now

sour ivy
green chasm
green chasm
#

@sour ivy

sour ivy
#

This feels like the same root issue.

#

What does which flutter say?

green chasm
#

Riad-Dev@Riad-MacBook-Pro ~/iitjobs-recruiter % which flutter
/Users/iitjobsinc/Development/flutter/bin/flutter

sour ivy
#

That seems right.

#

/Users/iitjobsinc/.shorebird/bin/cache/flutter/c89520b6e77a110e6459a9850401dc7f1f794c2b/bin/cache/artifacts/engine/ios-release/analyze_snapshot_arm64 --dump_object_pool_link_data=/var/folders/qj/r1wgtp3x1cn5yghc73dg3hrw0000gn/T/1j1Lg8/Products/Applications/Runner.app/Frameworks/App.framework/App.op.link /var/folders/qj/r1wgtp3x1cn5yghc73dg3hrw0000gn/T/1j1Lg8/Products/Applications/Runner.app/Frameworks/App.framework/App is failing, which would suggest that /var/folders/qj/r1wgtp3x1cn5yghc73dg3hrw0000gn/T/1j1Lg8/Products/Applications/Runner.app/Frameworks/App.framework/App was built with a version of Flutter other than c89520b6e77a110e6459a9850401dc7f1f794c2b

#

e.g. that there is still some path in the XCode file which is overrideing the flutter version

green chasm
#

yes exactly, tho i tried every work around i can..