I have quite a big and complex project with multiple storyboards, all localized in 2 languages. I have 4 storyboards - main iPhone, main iPad and another 2 for a separate feature.
Here are the problems I have..
2 of these Storyboards are duplicated in the project. When I manage to run, somehow at runtime, one of these storyboards is picked. When I edit the storyboard, I will have to edit in both files.
Copy 1
![Copy 1](https://i.stack.imgur.com/c6Csu.png)
Copy 2
![Copy 2](https://i.stack.imgur.com/6idrz.png)
The other problem is that I then have a mess in the directory of the project. I have 2 copies of a localized version of the resources.. therefore 2 it.proj folder, one in the root folder of the project and one in the source folder.
it.proj folder inside the root directory of the project
![it.proj folder inside the root directory of the project](https://i.stack.imgur.com/KbPkt.png)
storyboards inside the source code folder AgentAssist
![storyboards inside the source code folder](https://i.stack.imgur.com/IeyYq.png)
more localized resources
![enter image description here](https://i.stack.imgur.com/mEjO2.png)
![enter image description here](https://i.stack.imgur.com/AZO8b.png)
![enter image description here](https://i.stack.imgur.com/VBhJA.png)
The problems these are causing is unusual.. sometimes is just runs fine, and sometimes I get different errors. One would be
Compilation failed. Unable to write to path: /User.....Underlying Err Description: The file “CMAStoryboard_iPad.storyboardc” couldn’t be saved in the folder “Base.lproj” because a file with the same name already Failure Reason: A file with the name “CMAStoryboard_iPad.storyboardc” already Recovery Suggestion: To save the file, either provide a different name, or move aside or delete the existing file, and tr Underlying Description: The operation couldn’t be completed. Failure Reason: Description: “CMAStoryboard_iPad.storyboardc” couldn’t be removed because you don’t have permission to ac Failure Reason: You don’t have per Recovery Suggestion: To view or change permissions, select the item in the Finder and choose File > G Underlying Description: The operation couldn’t be completed. Directo Failure Reason: Directo....
The other alternative error would be a Copy .strings file error.
error: failed to remove ...../Xcode/DerivedData/AgentAssist-bgxpswehldjaxchamdipxdcfafbf/Build/Products/Debug-iphoneos/AgentAssist.app/it.lproj/CMAStoryboard.strings: “CMAStoryboard.strings” couldn’t be removed.
Then sometimes after cleaning, deleting derived-data folder and even not doing anything, it just runs.
Your help would be greatly appreciated as I cannot resolve this issue and I can't go on working with the project.
Thank you