Problems adding Projects to Workspace in Xcode 4

房东的猫 提交于 2019-12-02 20:11:05

I had this exact same problem. I think it stems from having another workspace already open referencing the project you want to add. I got it working by:

  1. shutdown xcode completely
  2. double-click the workspace to launch Xcode and open just that workspace
  3. drag and drop the project file from the Finder

Worked fine. I have many workspaces all referencing an openssl project, and it seems to work OK when you only have one workspace open at a time in Xcode.

Actually, I made it work without exiting Xcode. All you have to do is make sure the projects you want to add are closed, since Xcode is having trouble adding open projects to a workspace. So:

  • Close the projects you want to add
  • In the Workspace window, choose "Add Files to MyWorkspace"
  • Add the .xcodeproj file of the project you want to add

I had the same problem. SO I just exit xcode, restart it. Then I can see the files under the project.

Exiting Xcode completely and then double-clicking the .xcodeproj file to open the project.

Abhi Thakkar

It works but when you add an activity to the project than r.java file is automatically removed and errors are coming.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!