无论--target
变量如何,以下命令都会失败:
ionic cordova run ios --target="iPhone-X"
ionic cordova run ios --target="iPhone 12"
ionic cordova emulate ios --debug --target="iPhone 11" -- --buildFlag="-UseModernBuildSystem=0"
错误是:
[native-run] ERR_DEVICE_LOCKED: Device still locked after 1 minute. Aborting.
[ERROR] An error occurred while running subprocess native-run.
这是在我切换到 Apple Silicon (M1) MacBook Pro 之后发生的,但我不能 100% 确定。谢谢!