Installation
The MobbSign iOS SDK is delivered as a ZIP file that contains the frameworks, a sample application and a test encryption key.
Requirements
- iOS
- 12 or later
- License
- License keyBound to your bundle ID. Provided by Mobbeel.
- Encryption key
- Public key of your projectA test key is included in the distribution.
- Network
- Internet connectionOnly to validate the license the first time and when it is renewed.
- Input
- TouchscreenA stylus or an active pen is recommended.
Before you begin
You need a license key, generated for the bundle identifier of your app, and the public encryption key of your project, a .key file. The distribution includes a test key; you need a production key before releasing your app.
1. Add the frameworks
Copy the following items from the libs folder of the distribution to a folder of your project, and drag them to the project tree in Xcode:
| Item | Provides |
|---|---|
MobbSignSDK.framework | The MobbSign SDK. |
MobbSignSDK.bundle | Resources of the SDK. |
MobbCommons.framework | Components shared by Mobbeel products. |
PDFNet.framework · Tools.framework | PDF rendering engine and viewer tools. |
Add PDFNet.framework and Tools.framework as embedded binaries of your target:
Tick each framework as you add it — the list is only a guide and is not saved.
2. Link the system libraries
Add these system frameworks and libraries to Link Binary With Libraries of your target:
Tick each framework as you add it — the list is only a guide and is not saved.
3. Configure the build settings
Add the following flags to Other Linker Flags in the build settings of your target:
-lstdc++ -lsqlite3 -ObjC
4. Add a run script
In Build Phases, add a Run Script phase with the following script, which removes the architectures that are not needed from PDFNet.framework:
bash "$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/PDFNet.framework/strip-framework.sh"
5. Add the encryption key
Add the public key of your project to your app target, for example as public.key. The quick start shows how to load it.
Sample application
The sample folder of the distribution contains a ready-to-run Xcode project that loads a PDF and lets you sign it. Configure your license key and run it on a device.
Troubleshooting
Undefined symbols when linking
Check the system libraries of step 2 and the-lstdc++ -lsqlite3 -ObjClinker flags.The app crashes at launch with
PDFNetnot loadedAddPDFNet.frameworkandTools.frameworkas embedded frameworks.The viewer is not shown full screen
Present the view controller that containsMobbSignViewwithUIModalPresentationFullScreen.
Next step
Configure the SDK and sign your first document in the Quick start.