NHN Cloud SDK for iOS consists of the following:
You can selectively apply the required feature among the services provided by NHN Cloud SDK.
Service | Cocoapods Pod Name | Carthage | Framework | Deployment Target | Dependency | Build Settings |
---|---|---|---|---|---|---|
All | NHNCloudSDK | binary "https://nh.nu/nhncloudsdk | NHNCloudCore.framework NHNCloudCommon.framework NHNCloudLogger.framework NHNCloudIAP.framework NHNCloudPush.framework |
|||
Mandatory | NHNCloudCore NHNCloudCommon |
NHNCloudCore.framework NHNCloudCommon.framework |
11.0 | OTHER_LDFLAGS = ( "-ObjC", "-lc++" ); |
||
Log & Crash | NHNCloudLogger | NHNCloudLogger.framework | 11.0 | [External & Optional] * CrashReporter.framework (NHNCloud) |
||
IAP | NHNCloudIAP | NHNCloudIAP.framework | 11.0 | * StoreKit.framework [Optional] * libsqlite3.tdb |
||
Push | NHNCloudPush | NHNCloudPush.framework | 11.0 | * UserNotifications.framework [Optional] * PushKit.framework |
||
OCR | NHNCloudOCR | NHNCloudOCR.framework | 11.0 | * Vision.framework * AVFoundation.framework |
platform :ios, '11.0'
use_frameworks!
target '{YOUR PROJECT TARGET NAME}' do
pod 'NHNCloudSDK'
end
# Full URL
binary "https://api-storage.cloud.toast.com/v1/AUTH_f9e3dc598ca142d3820e1c19343d5428/carthage/NHNCloudSDK.json"
# Short URL
binary "https://nh.nu/nhncloudsdk"
Add the frameworks in the created Carthage/Build folder to the Xcode project.
Check that the frameworks have been added to the project as shown below.
To use NHN Cloud SDK, you must perform Framework setting and Project setting.
To use desired features among the services selectively, you need to choose only the required frameworks per service and add them to the project. For details on required frameworks per service, see NHN Cloud SDK Components.
The entire iOS SDK can be downloaded from the Downloads page of NHN Cloud.
To use the Crash Report feature of Logger, CrashReporter.framework which is released along with the service, must be added to the project.
Check that the frameworks have been added to the project as shown below.
To use the IAP feature, StoreKit.framework must be added.
To use the Push feature, UserNotifications.framework must be added.
Add -lc++ and -ObjC to Other Linker Flags under Build Settings.
If you directly downloaded or built CrashReporter.framework, the Enable Bitcode under Build Settings must be changed to No.
CrashReporter.framework downloaded from the Downloads page of NHN Cloud supports bitcode.
#import <NHNCloudCore/NHNCloudCore.h>
#import <NHNCloudLogger/NHNCloudLogger.h>
#import <NHNCloudIAP/NHNCloudIAP.h>
#import <NHNCloudPush/NHNCloudPush.h>
#import <NHNCloudOCR/NHNCloudOCR.h>
+ (void)setUserID:(NSString *)userID;
[NHNCloudSDK setUserID:@"NHNCLOUD-USER"];
+ (void)setDebugMode:(BOOL)debugMode;
[NHNCloudSDK setDebugMode:YES]; // or NO
[Caution] The debug mode must be disabled before releasing an app.