Execution Type property

Official Content
This documentation is valid for:
Sets an execution way to run and prototype an application for iOS, such as via a simulator or an actual device.


Build for Distribution (Local) Compiles the application in a Mac using the distribution signature and generates an *.ipa file in the GeneXus model directory.
Build IPA (Local) Compiles the application in a Mac and generates an *.ipa file in the iOS GeneXus model directory without opening iTunes.
iOS Device (Mac) Transfers the XCode project to a Mac, compiles the application and runs it in the device connected to the Mac. The Development Team ID property must be set.
iTunes Sync (Local) Transfers the XCode project to a Mac and compiles the application generating an *.ipa file. Next, it copies it from the Mac to a PC (note that the Output window of the GeneXus IDE shows the path where it was copied to), and automatically opens iTunes to show the application in the application catalog.
Knowledge Base Navigator (Device) Runs the application in a device (not in the Simulator) that is registered in a gxtechnical.com user profile and has the corresponding KBN installed.
Simulator (Mac) Transfers the XCode project corresponding to the application to a Mac and starts the iPhone or iPad emulator. This is the default value.


Platforms: Smart Devices(IOS)


Warning: Local building options have been reintroduced in GeneXus 15 Upgrade 5, but they are unavailable for GeneXus 15 U1, U2, U3, U4; in these cases, refer to HowTo: Create an .ipa file from XCode for creating it manually.

Warning 2: When building for distribution, GeneXus will throw an error. You will need to manually execute (only the first time) the sshExec command (the one that contains "-allowProvisioningUpdates") in a Mac terminal.


  • When generating the application, an iOS Development provisioning profile matching your application 'iOS Bundle Identifier' will be automatically selected; otherwise, an error will appear.

  • An *.ipa file is an iOS application archive file that stores an iOS app.

  • GeneXus uses the XCode command-line tool package called xcodebuild to generate the application in the Mac environment. This is an example of the process that GeneXus executes in order to build an *.ipa file.
    sshExec: cd /Users/<MacUser>/Documents/Projects/<KBame>/<Environment>/<Main object name>;
        security list-keychains -s ~/Library/Keychains/login.keychain;
        security unlock-keychain -p <password> ~/Library/Keychains/login.keychain;
            -scheme "<MainObjectName>" -configuration Release archive -archivePath build/<MainObjectName>.xcarchive SYMROOT=\$SRCROOT/build 2>&1
    sshExec: cd /Users/<MacUser>/Documents/Projects/<KBame>/<Environment>/<MainObjectName>;
        echo -e '<?xml version="1.0" encoding="UTF - 8"?>\n
            <!DOCTYPE plist PUBLIC " -//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n
            <plist version="1.0">\n
            </plist>' > build/GXArchiveExportOptions.plist;
        security list-keychains -s ~/Library/Keychains/login.keychain;
        security unlock-keychain -p <password> ~/Library/Keychains/login.keychain;
             -exportArchive -archivePath build/<MainObjectName>.xcarchive -exportOptionsPlist build/GXArchiveExportOptions.plist -exportPath build 2>&1
  • The 'development' method value is used for iTunes sync and Build IPA optionsOn the other hand, the 'app-store' method value is used for Build for Distribution option. This value is stored in an intermediate file build/GXArchiveExportOptions.plist

  • It is highly recommended that the developer stores the build/<MainObjectName>.xcarchive file in every release of the application.


This property applies only at design-time.

How to apply changes

To apply the corresponding changes when the property value is configured, execute a Build All.

See Also