Found when importing constraint library SnapKit via CocoaPods
The following problems will arise when using CocoaPods to install third-party frameworks in projects programmed with Swift:
This problem occurs because use_frameworks is not written in the Podfile!
After writing this sentence in the pod file, the reinstallation will be successful, but when importing a third-party header file in the project, the following error will be reported: cannot load underlying module for '***'
The reason for this problem is because of the podfile file, you need to add a sentence source 'https://github.com/CocoaPods/Specs.git' to the file
Therefore, compared with the previous habit, it is necessary to add the above two sentences in purple,
Here is a successful example
quoted
https://blog.csdn.net/yan_xiaoxi/article/details/52412168