简体   繁体   English

Bitbucket + Xcode没有显示正确的项目

[英]Bitbucket + Xcode Not Showing Proper Project

I've just setup bitbucket git repo with Xcode. 我刚刚用Xcode设置了bitbucket git repo。 I had a local repo on my MacBook Pro which I ported to BitBucket. 我在MacBook Pro上有一个本地存储库,该存储库已移植到BitBucket。 Then on my new iMac I added the repo and it cloned it. 然后,在新的iMac上,我添加了存储库并对其进行了克隆。 In the project folder all the files are there, iPhone storyboard, iPad storyboard etc etc but when I open the project file in Xcode, either by opening in Xcode or by clicking the project file it opens a project that is essentially blank with just iPhone storyboard and project name. 在项目文件夹中,所有文件都存在,iPhone故事板,iPad故事板等,但是当我在Xcode中打开项目文件时,通过在Xcode中打开或单击项目文件,它会打开一个项目,该项目实际上只是iPhone故事板和项目名称。

No idea why this is happening as full project is on iMac 不知道为什么会这样,因为iMac上有完整的项目

EDIT: 编辑:

It's now working on my iMac but the version on my MacBook will never Push as it says there is uncommited changes but it's always the same file UserInterfaceState.xcuserstate No matter how many times I commit it seems to think it still has uncommited changes. 它现在可以在我的iMac上运行,但MacBook上的版本将永远不会推送,因为它说存在未提交的更改,但始终是同一文件UserInterfaceState.xcuserstate无论我提交了多少次,似乎都认为它尚未提交更改。

There are some files that you can safely ignore in git. 您可以在git中安全地忽略一些文件。 UserInterfaceState.xcuserstate is one of them. UserInterfaceState.xcuserstate是其中之一。 There's a great answer here that lists others. 这里列出了一个很好的答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM