Open terminal and execute this command to install Cocoapods on your mac OS:
sudo gem install cocoapods
Create a XCode project, open terminal and execute these commands to install neshan SDK in your project:
cd project_directory
pod init
Open Podfile with a text editor and add the following line under use_frameworks!
:
pod 'NeshanMobileSDK', '~> 0.9.4'
To install NeshanMobileSDK pod, execute the following command:
pod install
If you already use previous versions of NeshanMobileSDK, you need to run pod update
after that too.
Wait until the installation is finished.
Close any xcode project and open your workspace file workspacename.xcworkspace
To create a licence file you need :
- Bundle Identifier : The bundle identifier of the application you want to use SDK in.
Download neshan.license
and drag it to your project with "Copy items if needed" option checked.
If you encounter error with ld: library not found for -lstdc++.6
message, remove $(inherited)
and -l"stdc++.6"
from Other Linker Flags
of your project build settings.