How to Make a Mac App
This section will help you to quickly get started with ComPDFKit Conversion SDK to make a macOS project in with step-by-step instructions, which include the following steps:
Create a new project.
Integrate ComPDFKit Conversion SDK into your project.
Apply the license key.
Create a New Mac Project
Open Xcode and select Create a new Xcode project from the welcome screen or select File -> New -> Project from the menu bar
Add ComPDFKit Conversion SDK Package
Once Xcode creates the project, add the ComPDFKit_Conversion.xcframework to it by following steps:
In the Project navigator, click on the project name at the top of the left sidebar.
Click on the target you want to add the framework to.
Select the General tab at the top of the main editor area.
Scroll down to the Linked Frameworks and Libraries section.
Click the + button to add a new framework.
In the dialog that appears, select "ComPDFKit_Conversion.framework", and click Add. Drag ComDocumentAIKit.framework into the folder of your Xcode project, then select Copy items if needed and Create groups options in the pop-up window.
Add these files into your Xcode project as we did in the step above(if your project is based on MacOS):libDocumentAI3.3.1.dylib, libonnxruntime.1.14.1.dylib, libpaddle2onnx.1.0.6.dylib, libopencv_world.4.2.dylib.
Add these files into your Xcode project as we did in the step above: "CDocumentAIResource.bundle".
Ensure that the Embed option for the content added in General -> Frameworks, Libraries, and Embedded Content is set to Embed & Sign.
Ensure that the Signing Certificate option in Signing & Capabilities -> Signing is set to Development.
Now that you've added the "ComPDFKit_Conversion.xcframework" to your project. Don't forget to import the framework where you want to use it in your project's code:
#import <ComPDFKit_Conversion/ComPDFKit_Conversion.h>