Failed to lookup symbol 'OpenPGPBridgeCall' since 3.10.4 in profile/release mode
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.
This appears to be fixed in 3.10.5. Thanks!
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.
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.
The solution is, per the first comment,
When I revert back to 3.10.3 everything works correctly.
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
...
new version released with force load similar to 3.10.3 https://github.com/jerson/flutter-openpgp/releases/tag/v3.10.7
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
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