简体   繁体   中英

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

I have two XCode projects - they are two different versions of the same app. 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. However, I'm noticing that the storyboards in project B are actually just pointing to project A!

Meaning, if I go into storyboard "Foo" in project B and make some changes, they show up in project A as well! 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? Also, how do I prevent this from happening in the future? XCode does some weird stuff without telling you, it seems.

I think I figured it out -- in my project.pbxproj file there was a path = reference to my other project. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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