You are here: Building the Application > Building Application for iOS
  1. Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.Provide details and share your research! Asking for help, clarification,.
  2. The Kony cloud is comprised of the Kony platform software stack and the Kony cloud foundation that contains the required APIs, automation, security, scalability and monitoring to run the Kony Platform. The infrastructure for the Kony cloud is provided by Amazon's AWS cloud. Kony is an official partner and reseller of AWS services.

To generate an iPhone and iPad application from the source code, you need to configure some settings in Xcode and run a few commands to view an application. Kony Studio now provides a feature to build an iPhone and iPad application and deploy it to a Mac automatically. You need a dedicated Mac to accomplish the generation of iPhone and iPad application binaries. This section explains how to automate the iOS binary generation process.

Download Visual Studio Community, Professional, and Enterprise. Try Visual Studio IDE, Code or Mac for free today.

Important: Currently, Kony Studio supports Xcode 4.6.3 onwards. To publish your apps on Apple App Store, you must build your apps using Xcode 5.1.1 using the latest Kony iOS plugin.

Prerequisites

Before you begin, ensure the following conditions are met:

  • Xcode and command line tools are installed on the Mac.
  • Xcode path is set to /Applications/Xcode.app/Contents/Developer/.

    To check the Xcode path or modify the path, follow these steps:

    1. Open the Terminal and enter the following command.

      xcode-select --print-path

      Output must be: /Applications/Xcode.app/Contents/Developer/

    2. If the path is not set, enter the following command:

      sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/

  • If multiple versions of Xcode are installed on the Mac, rename Xcode4.6.app or Xcode5.app to Xcode.app.
  • SSH is enabled on the Mac system.
  • Provisioning Profile and Code Signing Identity must match on the Mac system.
  • Provisioning profile on the device and on the Mac must match.
  • Kony Studio iOS plug-in must be available in plugins or dropins folder.

To enable automatic builds for iOS, follow these steps:

  1. In Kony Studio, navigate to Window > Preferences > Kony Dev Studio > iOS.
  2. Under the iOS Build Server area, specify the following:
    • Mac IP Address/Name: Enter the IP address or domain name of the Mac system in which you want to remotely build and view your application.
    • Mac Username: Enter the user name of the Mac system you want to remotely access to build your application.
    • Mac Password: Enter the password of the Mac system you want to remotely access to build your application.
    • Click Test Connection to check if you can system establish a connection with the Mac. The results are displayed as follows:

      Note: The above details are mandatory.

  3. In the iOS Build Options area, select Open project in Xcode to open the built applications in Xcode on the Mac.
  4. Under the Simulator Options select the iOS SDK Version of the emulator to launch your applications using an emulator.

    Click Refresh, if you change the emulator settings and you want the emulator settings to be applied.

    Note: The above details are mandatory.

  5. Use the Device Options area to build an IPA file to launch your application on an iOS device. Specify the following in the fields within the area:
    • Code Sign Identity: Represents the code signing certificate present on the configured Mac system. Ensure that the code sign identity present on the Mac and the device are the same. Code signing ensures code integrity, to determine who developed a piece of code, and to determine the purposes for which a developer intended a piece of code to be used. For more information about obtaining code signing certificates refer Code Signing Certificate Instructions.
    • Keychain Password: Enter the Keychain Password for your application. On iPhone, Keychain rights depend on the provisioning profile used to sign your application. Ensure you consistently use the same provisioning profile across different versions of your application.
    • Provisioning Profile: Represents the Provisioning Profile present on the configured Mac system. Ensure that the provisioning profile present on the Mac and the device are the same.
    • Base SDK: Represents the Base SDK version on which the device runs.
  6. Click OK.
  7. Build your application for iPhone or iPad.

    Note: All errors, warnings, and confirmations can be seen on the Console window.

  8. To build the application on the Mac, from the Emulator view, navigate to iPhone or iPad and double-click on the icon. The build confirmation is displayed on the Console window and the application is opened on your Mac.

    Note: The iPhone or iPad emulator is enabled only if these conditions are met:
    - iOS Plugin must be in dropins or plugins folder
    - iOS Build Server is set in the Preferences
    - Application must be built once for iOS platform

  9. To generate an IPA file, right-click on the iPhone or iPad emulator and then select Generate IPA.

    Note: After generating an IPA file, the IPA file is stored and the location link is displayed on the Console.

Copyright © 2015 Kony, Inc. All rights reserved.
-->

The Apple account management interface in Visual Studio provides a way to view information for development teams associated with an Apple ID. It allows you to do the following:

  • Add Apple developer accounts
  • View signing certificates and provisioning profiles
  • Create new signing certificates
  • Download existing provisioning profiles

Important

Xamarin's tools for Apple account management only display informationabout paid Apple developer accounts. To learn how to test an app on adevice without a paid Apple developer account, please see theFree provisioning for Xamarin.iOS apps guide.

Requirements

Apple account management is available on Visual Studio for Mac, Visual Studio 2019, and Visual Studio 2017 (Version 15.7 and higher). You must also have a paid Apple Developer account to use this feature. More information on Apple developer accounts is available in the Device Provisioning guide.

Note

Before you begin, be sure to first accept any user license agreements in the Apple Developer portal.

Add an Apple developer account

  1. Go to Visual Studio > Preferences > Apple Developer Account and click the + button to open the sign in dialog:

  2. Enter your Apple ID and password then click Sign In. This will save your credentials in the secure Keychain on this machine.

  3. Select Always Allow on the alert dialog to allow Visual Studio to use your credentials:

  4. Once your account has been added successfully, you will see your Apple ID and any teams that your Apple ID is part of:

Note

If you are using Visual Studio 2017 or Visual Studio 2019 (version 16.4 and older), you will need to be Paired to a Mac build host before proceeding.

Download kony studio for mac download
  1. Go to Tools > Options > Xamarin > Apple Accounts and click on Add:

  2. Enter your Apple ID and password then click Login.

  3. Once your account has been added successfully, you'll see your Apple ID and any teams that your Apple ID is part of:

View signing certificates and provisioning profiles

Select a team and click on View Details… to open a dialog that displays a list of signing identities and provisioning profiles that are installed on your machine.

The team details dialog displays a list of Signing Identities, organized by type. The Status column advises you if the certificate is:

  • Valid – The signing identity (both the certificate and the private key) is installed on your machine and it has not expired.

  • Not in Keychain – There is a valid signing identity on Apple's server. To install this on your machine, it must be exported from another machine. You cannot download the signing identity from the Apple Developer Portal as it will not contain the private key.

  • Private key is missing – A Certificate with no private key is installed in the keychain.

  • Expired – The Certificate is expired. You should remove this from your keychain.

Create a signing certificate

To create a new signing identity, click Create Certificate to open the drop-down menu and select the certificate type that you want to create. If you have the correct permissions a new signing identity will appear after a few seconds.

If an option in the drop-down is greyed out and unselected, it means that you do not have the correct team permissions to create this type of certificate.

Download provisioning profiles

The team details dialog also displays a list of all provisioning profiles connected to your developer account. You can download all provisioning profiles to your local machine by clicking Download all Profiles.

Troubleshoot

  • It may take several hours for a new Apple developer account to be approved. You will not be able to enable automatic provisioning until the account has been approved.

  • If adding an Apple developer accounts fails with the message Authentication Error: Xcode 7.3 or later is required to continue developing with your Apple ID., make sure that the Apple ID you are using has an active paid membership to the Apple Developer Program. To use a paid Apple developer account, please see the Free provisioning for Xamarin.iOS apps guide.

  • If attempting to create a new signing certificate fails with the error You have reached the limit for certificates of this type, then the maximum number of certificates allowed have been generated. To fix this, browse to the Apple Developer Center and revoke one of the Production Certificates.

  • If you are experiencing issues logging in your account on Visual Studio for Mac, a possible fix is to open the Keychain application and under Category select Passwords. Search for deliver. and delete all entries that are found.

  • If your signing certificate is revoked, it can be removed from the following path on Windows: C:Users<user>AppDataLocalXamariniOSProvisioningCertificates.

Known Issues

Download Kony Studio For Mac Windows 10

  • Distribution provisioning profiles by default will target App Store. In House or Ad Hoc profiles should be created manually.