Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcconfig option in xcodebuild command

I have created an app in IOS and want to build and run it through command line. The xcodebuild command helps in building the app and its basic syntax is as follows:

xcodebuild -target "${TARGET_NAME}" -sdk "${TARGET_SDK}" -configuration Release -xcconfig "${BUILD_SETTINGS_FILE_PATH}"

Each target will contain its product name and other build settings. Now I don't want to take the product name/build settings specified in xcode target, but rather through some external file which can contain build settings. So, i tried using the -xcconfig option but I am not clear with its implementation. What kind of file it should be and how the path to the file be configured?. The official documentation also doesn't seem to be too clear.

like image 426
clint Avatar asked Nov 24 '22 15:11

clint


1 Answers

xcodebuild PRODUCT_NAME argument affects all targets

.xcconfig file can be created using Xcode and the format of providing value is:

CUSTOM_CFBundleVersion = 3.0.
CUSTOM_CFBundleShortVersionString = 3.0
like image 61
Lakshmi Avatar answered Dec 15 '22 11:12

Lakshmi