Skip to content

GetSocial iOS Installer Script Reference


GetSocial iOS Installer Script simplifies GetSocial integration process. Script automates adding of the frameworks (CocoaPods supported) and project configuration to use GetSocial SDK.

On the Xcode project build the script will:

  1. Download GetSocial Frameworks and add them to the project.
  2. Configure URL Schemes for Invite Channels.
  3. Configure Deep Linking.
  4. Configure Push Notifications.

Adding Script To Project

  1. Download and unzip GetSocial iOS Installer.
  2. Copy the unzipped script to the Xcode project root folder, so you can add it to source control.
  3. In your Xcode project go to Project Settings → select target you want to modify → Build Phases tab.
  4. Create new or use existing Run Script phase → move it before Compile Sources phase.
  5. Add script to the Run Script build phase:

    "$PROJECT_DIR/" --app-id="your-getsocial-app-id"
  6. Resulting Xcode configuration should look like this:

    Xcode Script configuration

  7. Build your project.

Supported Configuration Parameters

GetSocial Installer script supports multiple configuration parameters, for instance to enable SDK debug mode:

"$PROJECT_DIR/" --app-id="your-getsocial-app-id"

Complete list of supported parameters:

Property Required Default Min SDK version Description
app-id + empty string 7.0.0 GetSocial App Id from the GetSocial Dashboard. More.
framework-version - empty string 7.0.0 GetSocial SDK version to use. See available versions here. If version is not specified the latest GetSocial SDK is used.
installer-version - empty string 7.0.0 Version of installer script. If not specified the latest available version will be used.
use-ui - true 7.0.0 If GetSocial UI framework should be added to project. More.
ignore-cocoapods - false 7.0.0 If your project uses CocoaPods to manage dependecies, by default installer script does not download GetSocial frameworks. Set this parameter to true if you want to override this behaviour.

Project Backups

Every time you build Xcode project with GetSocial Installer script, it creates a backup file of the project file inside .xcodeproj folder. This way you always have a backup if something goes wrong, like you get The file couldn’t be opened. error message after executing a build.

To recover your project:

  1. Find invalid .xcodeproj file
  2. Right click and press Show Package Contents
  3. Here you should see file project.pbxproj_*.backup
  4. Now delete project.pbxproj file and rename file from step 3 to project.pbxproj

We are here to help

If you will have any questions or encounter any problems with GetSocial Installer script, do not hesitate to reach us at or via the Intercom.

Give us your feedback! Was this article helpful?

😀 🙁