Xcode work interval xxxx.xcworkspace does not contain xxxx.xcodeproj

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.