why xcodebuild
building the same application differently for scheme
and target
options?
xcodebuild -target uConnect build
Above commands builds with Release config in build folder inside project.
xcodebuild -scheme uConnect build
Above builds with Debug config in Xcode’s DrivedData folder.
Wanted to understand what difference -target and -scheme options are making here?
As per my understanding it should always build the application in Release mode since we have selected Release at Project>>Info>>Configuration
use
Release
for command-line builds
Reference: