Built.io Contentstack is a headless CMS with an API-first approach that puts content at the centre. It is designed to simplify the process of publication by separating code from content. For more information see the website.
-
Download the Latest iOS SDK release and extract the zip file to your local disk.
-
Drag and drop Contentstack.framework into your project folder in Xcode.
A window will appear, prompting you to choose one of the options for adding files. Click the ‘Destination’ checkbox to copy items into the destination group’s folder. This will add the SDK to your project.
-
In the project editor, select your app under
TARGETS. Under theGeneraltab, openLinked Frameworks and Librariesand add the following libraries:
- CoreGraphics.framework
- MobileCoreServices.framework
- Security.framework
- SystemConfiguration.framework
- In your target app, click on the
Build Settingstab and add the-ObjCflag toOther Linker Flags.
Add the following line to your Podfile:
pod 'Contentstack'Run pod install, and you should now have the latest Contentstack release.
You can import header file in Objective-C project as:
#import <Contentstack/Contentstack.h>You can also import as a Module:
//Objc
@import Contentstack
//Swift
import ContentstackCopyright (c) 2016, Contentstack.io.
All rights reserved.