Update:
I found this is not notarization-related. The "archived" app has this issue and could be solved by turning off the optimization. Thanx to https://stackoverflow.com/questions/8813711/why-is-xcode-archive-acting-different-than-xcode-build-run-on-iphone
Topic:
Code Signing
SubTopic:
Notarization
Tags: