Manually signing an iOS app from the terminal is only supported for macOS, per this note in that article:
"
Only re-sign apps from the command-line as a last resort to update your code signature to include the DER entitlements. Re-signing apps from the command-line is not supported for iOS, iPadOS, watchOS and tvOS. It’s recommended that you to sign your app using macOS 11 or later as soon as you are able.
"