365SplendidSuns
365SplendidSuns

Reputation: 3245

Wrong XCode Project Location After Git Clone

I'm pretty new to Git and Bitbucket etc so am hoping this is something easily fixed although after Googling around I can't find anything similar.

I have an XCode Workspace (project and pod stuff) which I have made a git repository for. I've then created a new remote repository on Bitbucket and pushed the local repository there. So far pretty simple.

I have then gone on to another machine and pulled the repository and here is where I get a problem. In the workspace I can see / expand the Pods but the project is showing with red text and is not expandable.

enter image description here

I had no idea at first why this was but I then noticed that if I left click on the project and look at the identity and type on the right hand side the location is wrong. The path in th epic below is not the path to the project file on the new computer. Instead it is the path to the file on the original computer which was used to push the repo up to Bitbucket.

enter image description here

I've tried changing the location but the best I can do is open the project rather than the Workspace. Ideally I'd be able to change the way it in the original so that the it doesn't need changing in clones but I can't seem to do this in a satisfactory way either.

Any help would be much appreciated.

Upvotes: 1

Views: 1402

Answers (1)

Catalin Craciun
Catalin Craciun

Reputation: 284

This is a pretty common problem, usually met when passing projects around

Solution
Press the folder icon under 'Location' and choose the folder the contains your .xcodeproj

Upvotes: 3

Related Questions