First, download ARGear framework from the link (https://github.com/argear/argear-ios-sdk.git). Then, import the ARGear framework to your project.
In order to use the ARGear framework, iOS Deployment Target should be set to 11.0 or above.
Next, add the ARGear framework from TARGETS > General > Frameworks, Libraries, and Embedded Content as shown below. Please note that Embed status should be set to Embed & Sign.
Set TARGETS > Build Settings > Build Options > Enable Bitcode as No in your project.
ARGear framework requires four app permissions below. Please add the four properties into Info.plist file. In Value section, you can add description for the usage of each permission. The permissions are used for image capture, video record, and save them in a photo app.
Camera Usage Description
Microphone Usage Description
Photo Library Usage Description
Photo Library Additions Usage Description
In order to use ARGear, you need to set API configuration information such as API URL and Key.
API information can be obtained from ARGear Console (https://console.argear.io) by creating a project. Once created, you can check the information from Project Overview > Information in your Console.
Below is sample code of an ARGear Sample App.
<Example Configuration Settings of a Sample App>#define API_HOST @"https://apis.argear.io/api/v3/"#define API_KEY @"48cdd456621ebddb5283f516"#define API_SECRET_KEY @"e0ea29ce12178111d2a5e6093a6e048a2a6248b921f092f68c93992ca29a45ee"#define API_AUTH_KEY @"U2FsdGVkX19PpdEiXZ2STDy+UCJ+a/WpUVPENK1zQO1IgoZ7wTGgWQDaRcc+ugqbOzP/y+m2SKpJmMgwz/1ABQ=="
Set bundle identifier in TARGETS > General > Identity > Bundle Identifier in your project. The bundle identifier should be same as the one created during your project creation from ARGear Console (https://console.argear.io). You can check it from Project Overview > Information in your Console.