When using the Huanxin EaseIMKit library, I found that some developers need to change some logic in the library, or have some adjustments on the UI. If you directly change the library in the pods, the later library version upgrade will overwrite the previously modified code. At this time, we need the pod to point to the local library to achieve better local componentization, and will not cause other conflicts when pod install.
So how to use the EaseIMKit library locally? This article teaches you five steps to achieve~~
1. Let's go to Huanxin official website to download SDK Demo
Address: https://downloadsdk.easemob.com/downloads/iOS_IM_SDK_V4.0.3.zip
After downloading, you can see the EaseIMKit folder in the file package
2. You can also find the corresponding version through pod search EaseIMKit, and then perform corresponding operations after pod install locally.
3. We can copy the EaseIMKit folder in the red box above to our own project to ensure the corresponding files in the folder, as shown in the figure below
4. At this time, you can set the pod to point to the local path in the podfile file. The setting method is shown in the figure below
5. Finally, execute pod install again