Here are some common issues with troubleshooting your SDK initialization.
# In this article
# iOS SDK initialization testing
-
Verify that you can add the import library without an error:
import IterableSDK Double check your API credentials.
# iOS SDK troubleshooting
# CocoaPods troubleshooting
- Update your pods.
- Check the syntax of your
Podfile. - Ensure you're opening the Xcode
.xcworkspace, not the.xcodeprojectfile.
If you see this error:
[!] CocoaPods could not find compatible versions for pod "Iterable-iOS-AppExtensions":
In Podfile:
Iterable-iOS-AppExtensions
There are only pre-release versions available satisfying the following requirements:
'Iterable-iOS-AppExtensions', '>= 0'
You should explicitly specify the version in order to install a pre-release version
-
Make sure that you're using the verified latest release of CocoaPods.
To update CocoaPods run following command in the terminal:
sudo gem install cocoapods
-
Make sure that you add the
Iterable-iOS-AppExtensionspod, without a specific version (or=>0).
# Carthage troubleshooting
If you encounter errors when building the SDK with Carthage:
- Update to the latest released version of the SDK (6.6.5 or later).
- Update Carthage.
For example, update your SDK to version 6.6.5 or later if you see errors like
these (which occur when internal types are referenced in the module interface
files that are generated during Carthage builds where
BUILD_LIBRARY_FOR_DISTRIBUTION=YES).
error: no type named 'SendRequestValue' in module 'IterableSDK' error: no type named 'SendRequestError' in module 'IterableSDK'
# Manual import troubleshooting
- Ensure that you manually linked the libraries.
- Check that the libraries are listed in your
Linked Frameworks and Librarysection under theGeneraltab.
# Android SDK initialization testing
To make sure the SDK is successfully integrated, perform a gradle sync.
# Android SDK initialization troubleshooting
# Gradle sync failed
Gradle sync failed with
ERROR: Failed to resolve: com.iterable:iterableapi:3.1.3
Ensure you have jcenter() in project level gradle file:
allprojects { repositories { google() jcenter() } }
# Multiple push providers
To learn how to work with multiple push providers, read Setting up Android Push Notifications.
# Next steps
After installing the SDK, read Identifying the User.