|
@@ -0,0 +1,61 @@
|
|
1
|
+# iOS Installation
|
|
2
|
+
|
|
3
|
+# Prerequisites
|
|
4
|
+* You should installed and linked `react-native-agora`
|
|
5
|
+* Xcode 10.0+
|
|
6
|
+
|
|
7
|
+# Step 1. Open Project in Xcode
|
|
8
|
+Open `ios/projectName.xcodeproj` with XCode
|
|
9
|
+![Step 1](./IOS_INSTALLATION/1.1_Open_iOS_ProjectFile.png)
|
|
10
|
+# Step 2. Add Link Binary With Libraries
|
|
11
|
+Build Phases -> Link Binary With Libraries -> +
|
|
12
|
+![Step 2](./IOS_INSTALLATION/1.2_LinkBinaryWithLibraries.png)
|
|
13
|
+
|
|
14
|
+ libresolv.tbd
|
|
15
|
+ libc++.tbd
|
|
16
|
+ AVFoundation.framework
|
|
17
|
+ AudioToolbox.framework
|
|
18
|
+ VideoToolbox.framework
|
|
19
|
+ CoreMotion.framework
|
|
20
|
+ CoreMedia.framework
|
|
21
|
+ CoreTelephony.framework
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+# Step 3. Add Other Link Binary With Libraries From `node_modules`
|
|
25
|
+Build Phases -> Link Binary With Libraries -> + -> Add Other
|
|
26
|
+![Step 3](./IOS_INSTALLATION/1.3_Add_Other_Libraries.png)
|
|
27
|
+
|
|
28
|
+ node_modules/react-native-agora/ios/RCTAgora/libs/libcrypto.a
|
|
29
|
+ node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcCryptoLoader.framework
|
|
30
|
+ node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcEngineKit.framework
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+# Step 4. Add Framework Search Paths
|
|
34
|
+Build Settings -> Framework Search Paths -> +
|
|
35
|
+![Step 4](./IOS_INSTALLATION/1.4_Add_Framework_Search_Paths.png)
|
|
36
|
+"$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+# Step 5. Add Library Search Paths
|
|
40
|
+Build Settings -> Library Search Paths -> +
|
|
41
|
+![Step 5](./IOS_INSTALLATION/1.5_Add_Library_Search_Paths.png)
|
|
42
|
+
|
|
43
|
+"$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+# Step 6. Set Build Settings Enable Bitcode No
|
|
47
|
+Build Settings -> Enable Bitcode -> ...
|
|
48
|
+![Step 6](./IOS_INSTALLATION/1.6_Set_Build_Settings_Enable_Bitcode_No.png)
|
|
49
|
+
|
|
50
|
+# Step 7. Set Capabilities Background Modes
|
|
51
|
+Capabilities -> Background Modes -> Audio, Airplay, and Picture in Picture
|
|
52
|
+![Step 7](./IOS_INSTALLATION/1.7_Set_Capabilities_Background_Modes.png)
|
|
53
|
+
|
|
54
|
+# Step 8.1 Set info.plist
|
|
55
|
+Change info.plist
|
|
56
|
+"Privacy - Camera Usage Description":"use camera to start video call"
|
|
57
|
+"Privacy - Microphone Usage Description":"use microphone to start video call"
|
|
58
|
+
|
|
59
|
+![Step 8.1](./IOS_INSTALLATION/1.8.1_Set_info_plist.png)
|
|
60
|
+
|
|
61
|
+![Step 8.2](./IOS_INSTALLATION/1.8.2_Set_camera_and_microphone.png)
|