I got this error using the package in an app build on the latest macos:
Invalid architecture. The ios 26 SDK or later is required for an arm64e slice. The bundle executable in Runner.app/Frameworks/libsodium.framework contains an arm64e slice with the ios 17.5 SDK.