StoreKit2 staff in static library that is included into CPP project. How?

Hello!

My application written with CPP and using StoreKit2 functionality based on bridging CPP-ObjectiveCPP-Swift. The question is in correct project properties for adding this library to application.

Configuring library by attaching project.entitlement file (within in-app purchase key) to the library project. Question is how to add library to the application correctly:

  1. Is there requirements to write another one entitlement for Application and switch on 'in-app purchase' in application too or it's enough to add it only to the library?
  2. Is there any examples of using StoreKit2 in libraries and attaching it to the projects?
  3. Is there any requirements for configuring library within StoreKit2 if it's going to be reused in different applications?
StoreKit2 staff in static library that is included into CPP project. How?
 
 
Q