Sample iOS Application for users | Zoho Creator Help

Sample iOS Application for users

We have created an application using our Mobile SDK for your better understanding of the different methods and their usage. To install the app, you need to do the following:

1. Prerequisites

  • Xcode IDE 15
  • iOS 13 and above
  • CocoaPods
  • A Zoho account. If you do not have an account, sign up for one here.

2. Creating the Zoho Creator application

  1. Download the sample application from this link. The ZohoCreatorSDKDemo.zip file will be downloaded.
  2. Extract it and locate the Utility.ds file inside it.
  3. Create a Zoho Creator Application by importing the Utility.ds file into Creator. Learn how  

3. Register your app with Zoho

3.1 Users in Creator 5, follow the below steps:

  1. Navigate to your app's Settings page, then to the Mobile SDK page.
  2. Under the For Users section, click For iOS. A pane will slide in from the right.
  3. Select the UI & Core framework.
  4. Click the Generate Client Credentials. This will generate the client ID,  client secret and redirectURI for the iOS app that you want to integrate with your Creator application.

3.2 Users in Creator 6, follow the below steps:

  1. Navigate to your admin dashboard.
  2. From the left pane, select Mobile.
  3. Click Create New Mobile App at the top-right corner.

  4. From the list of applications, select the required app. Select the For Users - SDK under the Apple icon section.

  5. Click Generate Client. This will generate the client IDclient secret, and redirectURI for the iOS app that you want to integrate with your Creator application.

4. Installing CocoaPod

CocoaPods is a third-party dependency manager for Swift and Objective-C projects.

ote: All the commands should be entered in the Terminal.

To install CocoaPods,

  1. Open Terminal in your Mac
  2. Use the below command:
    sudo gem install cocoapods

5. Adding dependency

  1.  You can find the podfile file in the ZohoCreatorSDKDemo > native folder (Xcode project directory). 
  2. Ensure that the podfile contains the following:
    target 'Zylker Service' do
    use_frameworks!
    pod 'ZohoAuth'
    pod 'ZCUIFramework'
    end

    post_install do |installer|
    installer.generated_projects.each do |project|
    project.targets.each do |target|
    target.build_configurations.each do |config|
    config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
    config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
    end
    end
    end

    end
  3. Open the Terminal, navigate to the ZohoCreatorSDKDemo > native folder (Xcode project directory), then execute the following command:
    pod install
  4.  Open ZohoCreatorSDKDemo.xcworkspace in the XCode project.

6. Adding the Zoho Creator app to your sample Xcode project

  1. In the downloaded zip file, open ZohoCreatorSDKDemo > native >  ZohoCreatorSDKDemo.xcworkspace in XCode and navigate to AppDelegate.swift.
  2. Fill in all parameters mentioned below:
    var clientId = <#String!#>
    var clientSecret = <#String!#>
    var urlScheme = <#String!#>
  3. URL scheme (Redirect URI) entered should be configured in ZohoCreatorSDKDemo -> Info -> URL Types.

  4. Download the ZCAppInfo.plist file from the Configure Core Framework tab (refer to steps 1-3 in the above section).

    • For C6, refer to the below image.

  5. Move the ZCAppInfo.plist file to the ZohoCreatorSDKDemo > native > ZohoCreatorSDKDemo folder.
  6. Add the ZCAppInfo.plist file to the project and attach it to all targets.

7. Objective-C Bridging Header

Ensure to check whether the ZohoCreatorSDKDemo-Bridging_header.h file exists in the project. Below image shows where the file is loacted.


If the file is not found, you can create one by following the steps below.

  1. Select Header File:
  2. Enter the name of the Header File.
  3. Configure the Header File in Project -> Build options.
  4. Add the following to your Objective-C bridging header:
        #import <ZohoAuthKit/ZohoAuth.h> 
  5. Compile the project. In case you face any errors while doing these, please refer to this page.