Problem Description
The project uses Cocoapods to manage the Third-party framework, so you need to turn on xxxx.xcworkspace,pods for normal display, but xxxx.xcodeproj displays red, does not contain xxxx.xcodeproj, and cannot operate.
Try to remove all podfile, Podfile.lock, Xxxx.xcworkspace, and Pods folders.
Then open xxxx.xcodeproj and open the Podfile file
Edit Podfile File
Perform the installation of the corresponding third party class library
But there are errors [!] Attempt to read non existent folder
began to think Cocoapods problem, and try to reload Cocoapods.
The internet says to execute the following command
sudo--sh-c ' echo ' 117.18.237.29 ocsp.digicert.com ' >>/etc/hosts
But the problem is not solved, it is really maddening ... Problem Analysis
Looking for a long time, finally found the problem. In fact, the problem is not cocoapods, install the corresponding Third-party class library is no problem. In the beginning, it should be addressed to the work interval xxxx.xcworkspace does not contain xxxx.xcodeproj, since it is not included, The possible cause is a path error in the Xxxx.xcworkspace that describes Xxxx.xcodeproj, or xxxx.xcodeproj itself. I guess it should be the former question.
Open Xxxx.xcworkspace, click Xxxx.xcodeproj Find the path is really different from the path where I xxxx.xcodeproj. Problem Solving
Open Xxxx.xcworkspace, click Xxxx.xcodeproj
Then click on the right side of the screen, click the Location folder icon to modify the path, select the correct xxxx.xcodeproj file.
Save the path, Xxxx.xcodeproj is included, running the program is also normal.
Note:
To select the correct project to run, it will not work