今天在使用xcode学习swift的时候,遇到的一个项目需要旋转设备,前一阵子使用的时候还是正常的,今天突然提示:“[App] if we're in the real pre-commit handler we can't actually add any new fences due ”
搜索一番得到解决办法:
in your Xcode:
Click on your active scheme name right next to the Stop button
Click on Edit Scheme....
in Run (Debug) select the Arguments tab
in Environment Variables click +
add variable: OS_ACTIVITY_MODE = disable (设置这个键值对)
网友评论