When you move the cocoapods generated workspace to the upper-level directory, you need to change the pods.xcconfig and some of the settings in the project, which is usually no more difficult.
When you encounter this problem:
- Could not automatically select a Xcode project. Specify one in your podfile:
- Xcodeproj ' Path/to/project.xcodeproj '
It's OK to specify the project directory in the Podfile file, for example, I add this line in the Podfile file:
- ......
- Xcodeproj ' Portfolio/portfolio.xcodeproj '
- ......
The main cause is to have the pod find the project files in the subdirectory.
When you encounter this problem at update or install:
- Unable to find a specification for ' xxxxx (~> 1.x.x) ' depended upon by Podfile.
Just clean up the directory of the current pod. Execute the following command at the terminal:
- Pod Repo Remove Master
- Pod Setup
Install or update after Setup succeeds.
Could not automatically select an Xcode project