xcodebuild way to turn off -Wunused-command-line-argument

Hi all,

I've generated a .xcodeproj file via cmake and run this command:

xcodebuild -project hello.xcodeproj -configuration Release

but I wind up getting this error:

`clang: error: argument unused during compilation: '-s' [-Werror,-Wunused-command-line-argument]

** BUILD FAILED **`

Is there a way to fix this on the command-line? Either the correct way to use -s or turn off the -Wunused-command-line-argument flag on the command-line?

The .xcodeproj file works fine using Debug which makes sense because xcode isn't trying to strip everything.

Thanks!

xcodebuild way to turn off -Wunused-command-line-argument
 
 
Q