Applies to Kony Visualizer Classic.
Once you have created and configured an app’s assets, resources, and services, you compile and link them by building your app.
This topic covers the following topics:
About App Transport Security (ATS)
Automatically Modify info.plist with Custom Key Value Pairs
Automatically Add Required System Frameworks to the XCode Project
As of January 2017, Apple Corp. requires that all iOS apps make use of App Transport Security (ATS), which implements the https protocol when communicating with internet resources. Introduced in iOS 9, ATS enforces secure connections between internet resources (such as the backend server) and an iOS app, ensuring that internet communications via the iOS platform conform secure connection best practices. Doing so lessens the likelihood of accidentally disclosing sensitive information either directly through an app or through a library consuming data.
Kony Visualizer supports ATS and assumes that 1) your iOS applications make use of https, and 2) your communication through higher-level APIs is encrypted using TLS version 1.2 with forward secrecy. As a workaround to this requirement, if your app needs to make a request to an insecure domain, you have to specify this domain in your app's info.plist
file.
For more information, see the Apple Developer site.
When you build an app for the iOS platform in Kony Visualizer, Xcode generates a build properties file called info.plist
. By modifying this file, you can customize the properties of the build, which are reflected in the app the next time you build it. Modifications to info.plist
take priority over whatever properties are set by Kony Visualizer.
If your app requires that the info.plist
file be configured with sets of key value pairs of native SDK or custom-defined entries, you can automate this customization using a json file. The json file contains the key value pairs that you want added to info.plist
, and during the building of the app, this json file is incorporated into the kar file. When the kar file is extracted, iOS incorporates the key value pairs in the json fie into info.plist
.
To automatically modify info.plist with custom key value pairs, do the following:
infoplist_configuration.json
info.plist
file. Save the file and close it.The json file is incorporated into the kar file. When the kar file is extracted, iOS incorporates the key value pairs in the json fie into info.plist
.
When you use FFIs with Kony Visualizer, if the FFI has dependencies on any system frameworks, you can add those system frameworks to your XCode project. You can do so by configuring a kony_frameworks.json file.
To add system frameworks to the XCode project, do the following:
{
"systemframeworks" : ["AVFoundation", ”Security”, ”LocalAuthentication”]
}
To save time and effort, you can rebuild your app with your most recent build settings, or you can build with new or different settings.
To build an app with your most recent build settings, do the following:
To build an app with new or different settings, do the following:
Important: If you want to build your iOS app with multiple workspaces, you must select the Support Multiple iOS Workspaces from the Build section (Windows > Preferences > Kony Visualizer > Build). If this option is not checked, the workspace is replaced for every build. When this option is checked, a separate workspace is created for each application. It will reduce the time and effort required for building applications every time you switch from one application to another.
Rev | Author | Edits |
7.1 | NMK | NMK |
Copyright © 2013 Kony, Inc. All rights reserved. |