I want to disable all of the warnings (marked with yellow color) in Swift
file.
I've tried to add -w
flag to Build Phases
, but it doesn't work.
In Objective-C
it works, but how to do that in Swift
?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Target > Building Settings > Search "Warning" > Change Yes to No > Done