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.
Before you begin, ensure the following conditions are met:
Xcode path is set to /Applications/Xcode.app/Contents/Developer/
.
To check the Xcode path or modify the path, follow these steps:
xcode-select --print-path
Output must be: /Applications/Xcode.app/Contents/Developer/
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
To enable automatic builds for iOS, follow these steps:
Note: The above details are mandatory.
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.
Note: All errors, warnings, and confirmations can be seen on the Console window.
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
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:
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.
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.
Go to Visual Studio > Preferences > Apple Developer Account and click the + button to open the sign in dialog:
Enter your Apple ID and password then click Sign In. This will save your credentials in the secure Keychain on this machine.
Select Always Allow on the alert dialog to allow Visual Studio to use your credentials:
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.
Go to Tools > Options > Xamarin > Apple Accounts and click on Add:
Enter your Apple ID and password then click Login.
Once your account has been added successfully, you'll see your Apple ID and any teams that your Apple ID is part of:
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.
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.
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.
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
.