2. Silencing “Documentation issue” warnings in Xcode?
E.g. '@param' command used in a comment that is not attached to a function declaration
This warning is valid, however, I am compiling 3rd party code and wish to not have to alter the original source.
I am running Xcode 8.2.1.
代碼文檔注釋不規范,Xcode 就會報 Documentation issue
警告,所以,寫規范點你會死?。。?!
拓展閱讀:inhibit_all_warnings doesn't work for header files #5589
1. 最近升級了 Xcode,版本號是8.3(8E162),編譯工程后,出現了很多Apple Mach-O Linker Warning
類型的警告。
雖然不影響項目的正常編譯,但是對于一個有輕度強迫癥的我來說真是好煎熬。
Google 了一下,StackOverflow 上給出的解釋是:
It probably means their binary file has non-aligned pointer when they compile their code. In those cases, the alignment basically defaults to 1 byte and hypothetically might impact performance. After updating to Xcode 8.3 public release I am still seeing this error, so Google might need to compile their static library with different settings to make it go away.
網上說的是 Google 的 firebase analytics ,而我的情況全部出在百度地圖 SDK,相關問題已經有人提出來了[iOS地圖sdk] Xcode8.3的內存泄露問題,官方還沒有給出解決方案。
所以只能暫時 ignore it.
PS:iOS 百度地圖 SDK 已修復