Found the issue. When open in Xcode 13, it fails to run on a device because the flag ENABLE_APP_SANDBOX was set TRUE. It is weird, it is working in Xcode 12.5.1. When set the flag to FALSE, Xcode 13 is able to install and run the app.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: