I am using Xcode to compile a C++ component, and I have successfully performed prelinking using "Perform Single-object Prelink" in Xcode. However, I am unsure if there is a similar parameter in xcodebuild that can achieve prelink. Is this workable, or is there any way to make it could be done?
Xcode: Perform Single-object Prelink in xcodebuild
When you build with xcodebuild
, you have either a -target
or -scheme
option to reference what to build, and all of the build settings set on the referenced target will then be automatically used, the same as when building through Xcode. Most projects are configured for xcodebuild
to build using the Release configuration of a target, so make sure that when you've configured the build setting for the target, that you've set the value you want for the Release
configuration, or whatever other configuration you will target with you command line build.
If you have a reason to alter the build settings for specific xcodebuild
innovations, you can also override build settings for a target by passing overridden values at the end of your xcodebuild
command by the exact setting name, such as GENERATE_PRELINK_OBJECT_FILE
. The man
page for xcodebuild
has the syntax for that.
— Ed Ford, DTS Engineer