iOS “[App] if we're in the real pre-commit handler we can't actually add any new fences due


最近運行APP,發現了這個問題,本着寧可錯看,不可放過的原則,上stackoverFlow學習了一下:

鏈接:http://stackoverflow.com/questions/38458170/ios-10-app-if-were-in-the-real-pre-commit-handler-we-cant-actually-add-any

----- “[App] if we're in the real pre-commit handler we can't actually add any new fences due ”

翻譯:

-----“[應用]如果我們在真實預提交處理我們不能添加任何新的圍欄,由於CA限購”

才知道這個問題其實是xcode 編譯器設置的問題,其實並不影響app使用:

"-------it comes from +[UIWindow _synchronizeDrawingAcrossProcessesOverPort:withPreCommitHandler:] via os_log API. It doesn't depend from another components/frameworks that you are using(only from UIKit) - it reproduces in clean single view application project on changing interface orientation.
This method consists from 2 parts:
adding passed precommit handler to list of handlers;
do some work, that depends on current finite state machine state.
When second part fails (looks like prohibited transition), it prints message above to error log. However, I think that this problem is not fatal: there are 2 additional assert cases in this method, that will lead to crash in debug.---"

翻譯:

----它來自+ [ UIWindow _synchronizedrawingacrossprocessesoverport:withprecommithandler:]通過os_log API。它不取決於另一個組件/框架,您使用的是(從UIKit)-再現清潔單視圖應用程序項目改變界面取向。
該方法由2部分組成:
並通過預提交處理程序處理程序列表;
做一些工作,這取決於當前的有限狀態機狀態。
當第二部分失敗(看起來像被禁止的過渡)時,它將上面的消息打印到錯誤日志上。然而,我認為這個問題不是致命的:有2個額外的斷言在這種方法的情況下,這將導致崩潰在調試

----------------------------華麗的分割線-------------------------------------

解決方法:

 

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

其實這好像是老版xcode 的,

其實點擊Xcode的product就可以找到(OS_ACTIVITY_MODE是name,disable 是值)


(特別注意:標注為disable失效后,程序可能會運行失敗!)

 

感謝分享, 本人到沒有遇到過。  大家遇到的可以借鑒這個  原文  http://blog.csdn.net/ws1836300/article/details/52957056


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM