Before adding the ReportPlus framework files to the Project embedded binaries, you will need to modify a setting in your Build Settings.
In Xcode, go to Build Settings for your application target.
Search for “bitcode”.
Set the “Enable Bitcode” setting to “No”
Configure the project to embed Swift standard libraries.
After modifying your Build Settings, you will be ready to add the ReportPlus frameworks to your application.
In Xcode, go to the application Target Settings.
Go to General.
Look for the “Embedded Binaries” option.
Press the “+” button and select all of the “.framework” files in the distribution:
When prompted select Create Groups and move the references to the desired group in your project (like “Frameworks” or “Dependencies”).
The General tab should now look like the following:
As you can see, the frameworks are automatically added to the “Linked Frameworks and Libraries”. This means you are ready to start using the ReportPlus component in your application.
To use the ReportPlus component in your application, you will need a license file (license.rplic), which you should have received along with the framework. The license file is associated with the bundle of your application, so you will need a new license file if you change the bundle ID in the future.
The license file is read as a resource file, so you will need to add it as a resource in the Build Phases section.
In Xcode, go to Build Phases for your target.
Expand Copy Bundle Resources.
Press the “+” button.
Select the license.rplic file.
If you have added the file before to your project, it will be available in the first screen. If not, you may need to press the “Add Other” button and browse to the location of the file in the file system.