|
@@ -84,68 +84,68 @@ post_install do |installer|
|
84
|
84
|
end
|
85
|
85
|
```
|
86
|
86
|
This is how your podfile should look like
|
87
|
|
-
|
|
87
|
+
|
88
|
88
|
after that you can run this command again
|
89
|
89
|
```sh
|
90
|
90
|
$ pod install
|
91
|
91
|
```
|
92
|
92
|
|
93
|
93
|
#### 7. Open up your xcode project *[project name].xcworkspace* inside in ios folder
|
94
|
|
-
|
|
94
|
+
|
95
|
95
|
|
96
|
96
|
#### 8. expand your project folder and right click on the *"Libraries"* folder and choose *"add files to [project name]"*
|
97
|
|
-
|
|
97
|
+
|
98
|
98
|
|
99
|
99
|
#### 9. follow the image below to find the RCTAgora lib
|
100
|
100
|
|
101
|
|
-
|
|
101
|
+
|
102
|
102
|
the path is node_modules => react-native-agora => ios => RCTAgora.xcodeproj
|
103
|
103
|
|
104
|
104
|
make sure you check so that those are checked
|
105
|
105
|
|
106
|
|
-
|
|
106
|
+
|
107
|
107
|
|
108
|
108
|
If the file is greyed out it means you already have it inside of you library folder.
|
109
|
109
|
Check so that RCTAgora.xcodeproj are inside of your "Libraries" folder
|
110
|
|
-
|
|
110
|
+
|
111
|
111
|
|
112
|
112
|
#### 10. we need to add the framework
|
113
|
113
|
expand your "Frameworks" folder and you should see the "AgoraRtcEngineKit.framework" are red.
|
114
|
|
-
|
|
114
|
+
|
115
|
115
|
right click and delete that
|
116
|
116
|
Left click on your "RCTAgora.xcodeproj" and clöick on "Build Phases"
|
117
|
|
-
|
|
117
|
+
|
118
|
118
|
left click on the "AgoraRtcEngineKit.framework" in the list and click on the "-"(minus sign) to remove it from the list.
|
119
|
|
-
|
|
119
|
+
|
120
|
120
|
then click on the "+"(plus sign) so that we can add the framework.
|
121
|
121
|
Click on the "Add other..." button
|
122
|
|
-
|
|
122
|
+
|
123
|
123
|
then we need to navigate and find our framwork
|
124
|
|
-
|
|
124
|
+
|
125
|
125
|
the path is : ios => Pods => AgoraRtcEngine_iOS => AgoraRtcEngineKit.framework and click on "add"
|
126
|
126
|
|
127
|
127
|
#### 11. at last we need to link the library
|
128
|
128
|
click on your project on the left and then click on "Build Phases" and then expand "Link Binary With Libraries" and then click on the "+"(plug sign)
|
129
|
|
-
|
|
129
|
+
|
130
|
130
|
Search for libRCTAGora and click on add
|
131
|
|
-
|
|
131
|
+
|
132
|
132
|
if you cant find it in your list check so that you dont already have it
|
133
|
133
|
|
134
|
134
|
----------------------------------------------
|
135
|
135
|
### Troubleshooting
|
136
|
136
|
|
137
|
137
|
if you get some errors like the pictures below
|
138
|
|
-
|
139
|
|
-
|
|
138
|
+
|
|
139
|
+
|
140
|
140
|
|
141
|
141
|
the chances are that you have some framework that already have imported time.h something like firestore.
|
142
|
142
|
|
143
|
143
|
Expand your "Libraries" and then click on "RCTAgora.xcodeproj". Then click on "Build settings" and search for "Header search paths"
|
144
|
|
-
|
|
144
|
+
|
145
|
145
|
Doubble click on the path
|
146
|
|
-
|
|
146
|
+
|
147
|
147
|
and change the Pods path from "recursive" to non-recursive
|
148
|
|
-
|
|
148
|
+
|
149
|
149
|
|
150
|
150
|
|
151
|
151
|
|