- Developing Live Experience
- Create a New Xcode Project
Create a New Xcode Project
Create a new Xcode project.
- Select File > New > Project....
- Select Single View App.
- Ensure that Swift is selected as the development language.
-
Name your project and location, and click Create.
Xcode will start in the Project Navigator with the General tab already open.
- Scroll to the Embedded Binaries section.
- Click + and then Add Other....
- Find the live-experience-ios-sdk folder you extracted from the iOS SDK zip.
- Open the release folder, select all three framework files inside, and click Open.
- Make sure Copy items if needed is selected when prompted, and click Finish.
- Click the Build Settings tab.
- Enter bitcode into the Search field of the tab.
- Change the Enable Bitcode build option from Yes to No.
-
Request permission to access the camera and microphone in our app.
-
Click the Info.plist file from the tree view
list of the project's files on the left pane of the Xcode window.
The file displays in the center pane.
- Hover your mouse over Information Property List and click +.
- Start entering Privacy (with a capital P) and select the option named Privacy - Camera Usage Description.
- Set the value of this option to the text you want to display to the end-user when requesting camera access. For example, Can I use your camera?.
- Hover your mouse again over Information Property List and click +.
- Start entering Privacy (with a capital P) and select the option named Privacy - Microphone Usage Description.
- Set the value of this option to the text you want to display to the end-user when requesting microphone access. For example, Can I use your microphone?.
-
Click the Info.plist file from the tree view
list of the project's files on the left pane of the Xcode window.