xcodebuild 如何将 WARNING_CFLAGS 传递给 buildsettings

how xcodebuild to pass WARNING_CFLAGS to buildsettings

xcodebuild -project MyProj.xcodeproj -scheme MyLib WARNING_CFLAGS='-Wno-shorten-64-to-32

好像不行...

  1. 转到 Xcode 项目的构建阶段。
  2. In compile sources, select all files you want to compress for
  3. 错误
  4. -Wno-shorten-64-to-32 添加到“编译器标志”列