I tried restarting both iphone and mac but it didn't work. It worked fine on simulator just not my phone.
xcode 12.1
ios 14.2
Update: Apparently xcode 12.1 doesn't support 14.2...
Error message from "Devices and Simulators":
The current device configuration is unsupported. This iPhone 11 Pro is running iOS 14.2 (18B92), which is not supported by Xcode 12.1.