Xcodebuild: find where the output application file is

Is it possible to indicate where to put the output file (i.e...app) for xcodebuild? By default, it is in the folder

/Users/myusername/Library/Developer/Xcode/DerivedData/Project-crkyjjbuqqnqqvfxehsjsarzlbbr/Build/Products/Release-iphoneos/Project.app

How do I need to find the output file of Project.app, if there is no way to specify the path, can I use a script to find this "/ Users / myusername / Library / Developer / Xcode / DerivedData / msgstr" folder and inside it find the one that has the last modified date and prefix "Project-"? What does the script look like?

thanks

+7
xcode xcodebuild macos
source share
1 answer

Override the CONFIGURATION_BUILD_DIR environment variable in the xcodebuild argument. For example, this command would place its build products under "/ tmp / sportsball /":

xcodebuild -workspace Sportsball.xcworkspace -scheme "Sportsball Debug" -configuration Debug clean build CONFIGURATION_BUILD_DIR=/tmp/sportsball/

+6
source share

All Articles