flutter-openpgp icon indicating copy to clipboard operation
flutter-openpgp copied to clipboard

Failed to lookup symbol 'OpenPGPBridgeCall' since 3.10.4 in profile/release mode

Open amake opened this issue 7 months ago • 8 comments

The changes in 3.10.4 seem to have introduced a problem in profile and release mode. Running the example app in this repo at commit ff311f512e3d557ead422296630199978c17e1b0, I get the following log when I try to invoke any of the functions such as "Encrypt And Decrypt":

flutter: Invalid argument(s): Failed to lookup symbol 'OpenPGPBridgeCall': dlsym(RTLD_DEFAULT, OpenPGPBridgeCall): symbol not found

When I revert back to 3.10.3 everything works correctly.

~I have users reporting a similar issue on Android, but I haven't been able to reproduce it there yet.~ The Android issue was #84.

amake avatar May 26 '25 00:05 amake

This appears to be fixed in 3.10.5. Thanks!

amake avatar Jun 19 '25 11:06 amake

Actually I find that the issue remains when I publish to App Store Connect and install the result via TestFlight. For some reason it wasn't a problem when running with flutter run --profile or --release.

I note that after updating to 3.10.5 and running an iOS build, the openpgp.framework is removed from something in the Xcode project: https://github.com/amake/orgro/commit/58a74547f1d3d7adda5cb7a3254fbf44865cea1f#diff-413fd2395fd4377132c8c1135c9bc9ab215c6f97322d27717a487223bd03e2c7

This seems suspicious to me.

amake avatar Jun 19 '25 11:06 amake

I'm also experiencing this issue with openpgp 3.10.6. The Failed to lookup symbol 'OpenPGPBridgeCall' error happens in release IPA builds. Has anyone found a solution for this? It's blocking the production releases.

maryannabt avatar Jul 14 '25 19:07 maryannabt

The solution is, per the first comment,

When I revert back to 3.10.3 everything works correctly.

amake avatar Jul 14 '25 23:07 amake

I am also getting the same issue with openpgp 3.10.6. Downgrading to 3.10.2 worked for me 👍. For some reason 3.10.3 gave me some weird linker errors 🤷🏻‍♂️:

Error (Xcode): Undefined symbol: _FIRInstallationIDDidChangeNotification

Error (Xcode): Undefined symbol: _GULIsLoggableLevel

Error (Xcode): Undefined symbol: _GULOSLogBasic

Error (Xcode): Undefined symbol: _GULOSLogError

Error (Xcode): Undefined symbol: _GULOSLogInfo

Error (Xcode): Undefined symbol: _GULOSLogWarning

Error (Xcode): Undefined symbol: _GULSetLoggerLevel

...

boncossoftware avatar Jul 19 '25 12:07 boncossoftware

new version released with force load similar to 3.10.3 https://github.com/jerson/flutter-openpgp/releases/tag/v3.10.7

jerson avatar Oct 25 '25 01:10 jerson

v3.10.7 does not fix the issue for me. Again I don't know if this is the cause, but I see the same removal of openpgp.framework in 3.10.7 as in other non-working versions: https://github.com/amake/orgro/commit/79fbfcc64f0d39147c357abdc44e785eeef1da57#diff-413fd2395fd4377132c8c1135c9bc9ab215c6f97322d27717a487223bd03e2c7

amake avatar Oct 25 '25 10:10 amake

Hello all, I had the same issue and a colleague tried to fix it by forking the repository and setting static_framework to false instead of true (this was changed since the version 3.10.4).

It seems everything works fine for me now with the version 3.10.7 and openpgp.framework is back in the embedded frameworks again 🙂

Here's the fork in case someone also want it : https://github.com/maximef-medes/flutter-openpgp

jennifer-martinot avatar Nov 06 '25 16:11 jennifer-martinot