Before using Kony Fabric APIs for iOS, you must configure Kony iOS SDK into your IDEs, such as Xcode. Configuring the Kony iOS SDK involves the following steps:
To configure KonySDK Framework to project, follow these steps:
kony-ios-sdk.zip file.KonySDK.framework to your Framework group in Xcode project.

You need to link your binaries with the following libraries.
To configure binaries, follow these steps:


SystemConfiguration.framework, and then click Add. The system adds the selected frameworks to the project under the Link Binary With Libraries section. MobileCoreServices.framework by following Step 3 through Step 4.The system adds the selected frameworks to the project under the Link Binary With Libraries section.

Now, add the remaining frameworks (shown in the following image) under the Embedded Binaries section in the General tab.

By doing so, these files will be listed in Link Binary With Libraries and Embedded Frameworks sections in the Build Phases tab.

echo "Target architectures: $ARCHS"
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK
do
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable)
FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME"
echo "Executable is $FRAMEWORK_EXECUTABLE_PATH"
echo $(lipo -info "$FRAMEWORK_EXECUTABLE_PATH")
FRAMEWORK_TMP_PATH="$FRAMEWORK_EXECUTABLE_PATH-tmp"
#remove simulator's archs if location is not simulator's directory
case "${TARGET_BUILD_DIR}" in
*"iphonesimulator")
echo "No need to remove archs"
;;
*)
if $(lipo "$FRAMEWORK_EXECUTABLE_PATH" -verify_arch "i386") ; then
lipo -output "$FRAMEWORK_TMP_PATH" -remove "i386" "$FRAMEWORK_EXECUTABLE_PATH"
echo "i386 architecture removed"
rm "$FRAMEWORK_EXECUTABLE_PATH"
mv "$FRAMEWORK_TMP_PATH" "$FRAMEWORK_EXECUTABLE_PATH"
fi
if $(lipo "$FRAMEWORK_EXECUTABLE_PATH" -verify_arch "x86_64") ; then
lipo -output "$FRAMEWORK_TMP_PATH" -remove "x86_64" "$FRAMEWORK_EXECUTABLE_PATH"
echo "x86_64 architecture removed"
rm "$FRAMEWORK_EXECUTABLE_PATH"
mv "$FRAMEWORK_TMP_PATH" "$FRAMEWORK_EXECUTABLE_PATH"
fi
;;
esac
echo "Completed for executable $FRAMEWORK_EXECUTABLE_PATH"
echo $(lipo -info "$FRAMEWORK_EXECUTABLE_PATH")
done
cp Resources/* "$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH" > /dev/null 2> /dev/null
exit 0Note: This step should be the final step under the Build Phase.


Kony provides Xcode docset to search and browse API documentation within Xcode. The docset also provides quick help in the code completion popup.
To view Kony iOS Docset help in native format, click com.kony.KonySDK.docset.
To install the com.kony.KonySDK.docset in Xcode, follow these steps:
com.kony.KonySDK.docset folder from KonySDK folder.~/Library/Developer/Shared/Documentation/DocSets/ and then paste com.kony.KonySDK.docset folder.

| Copyright © 2020 Kony, Inc. All rights reserved. |