简体   繁体   English

如何在两个XCode项目之间“取消链接”故事板?

[英]How can I “unlink” storyboards between two XCode projects?

I have two XCode projects - they are two different versions of the same app. 我有两个XCode项目-它们是同一应用程序的两个不同版本。 I started out with one version of the app, then for historical reasons had to make a copy of it with slightly different content and implementation. 我从一个版本的应用程序开始,然后由于历史原因不得不复制内容和实现略有不同的副本。

When I made the copy, I copied over all the story projects from project A into project B. Everything was working fine. 复制后,我将所有故事项目从项目A复制到项目B。一切工作正常。 However, I'm noticing that the storyboards in project B are actually just pointing to project A! 但是,我注意到项目B中的情节提要实际上只是指向项目A!

Meaning, if I go into storyboard "Foo" in project B and make some changes, they show up in project A as well! 意思是,如果我进入项目B中的情节提要“ Foo”并进行一些更改,它们也会显示在项目A中! This is obviously not what I want, I want the codebases to know nothing about each other and to be completely separate. 显然这不是我想要的,我希望代码库彼此之间一无所知,并且完全分开。

So is there a way I can tell project B to just have all its own stuff and never look at project A again? 那么有什么办法可以让我告诉项目B仅拥有自己的东西,而不再关注项目A? Also, how do I prevent this from happening in the future? 另外,如何防止这种情况将来发生? XCode does some weird stuff without telling you, it seems. 看起来XCode确实做了一些奇怪的事情而没有告诉您。

I think I figured it out -- in my project.pbxproj file there was a path = reference to my other project. 我想我已经弄清楚了-在我的project.pbxproj文件中,有一个path =对其他项目的引用。 I have no idea how that happened. 我不知道那是怎么回事。 I removed that reference and copied all the storyboard files over by hand. 我删除了该引用,并手动复制了所有情节提要文件。 It appears to be okay now. 现在看来还可以。

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

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