简体   繁体   中英

How to suppress specific compiler warnings in Xcode11

I am using third party framework in my swift project with Xcode11, which is having many warnings for

Non-portable path to file "HeaderFile.h"; Specified path differs in case from file name on disk Headerfile.h

Is there any way to suppress these specific warnings? or any way to silent framework warnings?

I went through with many threads but did't find the expected solution.

Any inputs would be a great help here, Thank you!!

Add -Wno-nonportable-include-path to your compiler options.

In Xcode, click the “Show the Project navigator” icon at the top left (leftmost icon under the red-yellow-green window buttons) or select View > Navigators > Show Project Navigator.

The select the project (topmost item in the tree shown in the sidebar once the project navigator view is shown). To the right, click on Build Settings. Below that, and to the left, in Basic / Customized / All, click All.

Scroll to “Apple Clang - Custom Compiler Flags”. Click the blank field to the right of “Other Warning Flags”. A dialog with fields to enter options will pop up. Click “+” at the bottom left. In the empty field that becomes editable, enter “-Wno-nonportable-include-path”.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM