Problem description
The project uses the Cocoapods to manage the third-party framework, so it needs to open xxxx.xcworkspace,pods normal display, but xxxx.xcodeproj shows Red, does not contain xxxx.xcodeproj and cannot be manipulated .
Try to remove all podfile, Podfile.lock, Xxxx.xcworkspace, and Pods folders.
Then open xxxx. xcodeproj, open podfile file
Edit podfile file
Performing the installation of the appropriate third-party class library
But there is an error [!] Attempt to read non existent folder
began to think Cocoapods problem, and try to reload Cocoapods.
Online says to execute the following command
" Echo ' 117.18.237.29 ocsp.digicert.com ' >>/etc/hosts
But the problem is still unsolved, and it's 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 working range Xxxx.xcworkspace without xxxx.xcodeproj, since it is not included, possibly because Xxxx.xcworkspace describes the Xxxx.xcodeproj path error, or the path of the xxxx.xcodeproj itself is wrong. I guess it should be the former problem.
< Span style= "color: #000000;" > open Discover paths really and I xxxx.xcodeproj is different.
Problem solving
Open xxxx.xcworkspace, click xxxx.xcodeproj
Then click on the right side of the screen, click the folder icon under Location to modify the path, select the correct xxxx.xcodeproj file.
Save the path,xxxx.xcodeproj is included, and the running program is normal.
Attention:
To select the correct project to run or not run
iOS development essay 30:xcode work interval xxxx.xcworkspace does not contain xxxx.xcodeproj