今天在使用xcode學(xué)習(xí)swift的時(shí)候诅蝶,遇到的一個(gè)項(xiàng)目需要旋轉(zhuǎn)設(shè)備,前一陣子使用的時(shí)候還是正常的募壕,今天突然提示:“[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 (設(shè)置這個(gè)鍵值對)