This document explains how to manage and set Xcode versions to be used by GeneXus when building applications for Apple platforms.
Each GeneXus version/Upgrade has a set of compatible Xcode versions, as explained in Apple Requirements. In addition, you may have several versions of Xcode installed on your Mac computer. You may also use the Required Xcode version property to control the Xcode version used by GeneXus.
When building an application for Apple platforms, the following process is used by GeneXus to find a compatible Xcode version:
-
It checks if the version specified by the Command Line Tools setting in Xcode is compatible with the version required by the object being compiled.
-
For each version of Xcode installed on the Mac (the order in which versions are searched for is indeterminate):
-
If no compatible version is found, an error message is shown.
Warning: To successfully retrieve the Xcode versions installed on the Mac, the filename of each Xcode version must not include spaces.
Set the property to the Xcode version string (e.g.: 15.0) for each native mobile Main Object that requires a specific Xcode version.
An empty value will result in GeneXus using the first Xcode version according to the process explained in the previous session.
View Apple's official documentation (under the header "Select a version of the Xcode app for the Xcode command-line tools to use")
Note that GeneXus will use that version only if it is compatible with it. Otherwise, the search explained in the previous section will take place.