Xcode8更新後的一些問題解決

2021-07-22 21:06:12 字數 1587 閱讀 8543

1.common+/ 不能注釋了

這個是因為蘋果解決xcode ghost。把外掛程式遮蔽了。解決方法

命令執行:  sudo /usr/libexec/xpccachectl 

然後必須重啟電腦後生效

2.出現崩潰報錯日誌

更新到xcode8以後,發現列印了許多網路相關的日誌:

[html]view plain

copy

print?

-[nwconcrete_tcp_connection dealloc] 11  

nw_socket_handle_socket_event event mask: 0x4  

nw_socket_handle_socket_event socket received write_close event  

nw_socket_handle_socket_event event mask: 0x4  

nw_socket_handle_socket_event socket received write_close event] tcp_connection_cancel 5  

nw_socket_handle_socket_event event mask: 0x4] nw_socket_handle_socket_event socket received write_close event  

nw_endpoint_handler_cancel [5 192.168.2.51:1999 ready proxy (satisfied)]] -[nwconcrete_nw_endpoint_proxy cancelwithhandler:forced:] [5 192.168.2.51:1999 cancelled proxy (null)]] nw_endpoint_handler_cancel [5.1 192.168.2.51:1999 ready socket-flow (satisfied)]  

nw_endpoint_flow_protocol_disconnected [5.1 192.168.2.51:1999 cancelled socket-flow (null)] output protocol disconnected  

nw_endpoint_handler_cancel [5.2 192.168.2.51:1999 initial path (null)]  

-[nwconcrete_tcp_connection dealloc] 5  

這些日誌給我們使用log的方法來除錯帶來很大困擾,解決辦法:

第一步:

第二步:

第三步:

新增引數:

關於更新到Xcode8的一些問題

隨著ios 10的陸續使用,公升級到xcode8也是大勢所趨.雖然現在xcode 8 可能還有一些問題,但是整體還是不錯的,對一些常用的外掛程式也做了整合,比如說 注釋快捷鍵 下面說一下我遇到的一些問題 問題一 swift的更新 因為swift3有了較大更新,所以如果原專案中有涉及到swift的話需...

公升級Xcode8後需要注意的一些問題

1 證書相關 xcode8新特性,需要重新設定專案的證書。project targets general 2 注釋不能使用解決辦法 該問題的產生源於蘋果解決xcode ghost,把外掛程式遮蔽了。解決辦法 終端執行命令 sudo usr libxec xpccachectl,重啟電腦即可。另外在 ...

公升級Xcode8後需要新增的一些許可權

從xcode7公升級到xcode8 蘋果對很多隱私進行了控制 所以需要在infoplist裡進行一些設定 要不然會出現crash的現象 這裡先將關於隱私權限的東西記錄一下 後續再總結乙份其他的xcode8中的坑 使用xcode7啟動,卻沒有問題,實際原因是上面的輸出日誌中最後一行就是 告訴你訪問了隱...