build project with multiple localized XIB fail with file already exists error
| Originator: | otusweb | ||
| Number: | rdar://18811617 | Date Originated: | 10/29/2014 |
| Status: | duplicate 17848595 | Resolved: | |
| Product: | Developer Tools | Product Version: | xcode6 |
| Classification: | Reproducible: |
Summary:
The project attach is a sample project to reproduce what we see in our production project.
When doing clean build (build and derived data folder deleted) from the command line, about 50% of the time it will return an error similar too:
/* com.apple.ibtool.errors */
/Users/dogfish2/Desktop/test2/Base.lproj/7.xib: error: The file “ca.lproj” couldn’t be saved in the folder “test2.app” because a file with the same name already exists.
Failure Reason: A file with the name “ca.lproj” already exists.
Recovery Suggestion: To save the file, either provide a different name, or move aside or delete the existing file, and try again.
Underlying Errors:
Description: The operation couldn’t be completed. File exists
Failure Reason: File exists
If i use xcodebuild -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=1 then the error never happens
Steps to Reproduce:
- in the terminal change to the directory containing the project
- type xcodebuild
If error has not happened, delete build folder and derived data folder and repeat above step a few times (this reproduce best on a slow machine, i'm using a mac mini late 2012 with 16GB of RAM, 2.3 GHz Intel Core i7, running yosemite and xcode6.1)
Expected Results:
No error, build succeed
Actual Results:
error is returned for one of the XIB files
/* com.apple.ibtool.errors */
/Users/dogfish2/Desktop/test2/Base.lproj/7.xib: error: The file “ca.lproj” couldn’t be saved in the folder “test2.app” because a file with the same name already exists.
Failure Reason: A file with the name “ca.lproj” already exists.
Recovery Suggestion: To save the file, either provide a different name, or move aside or delete the existing file, and try again.
Underlying Errors:
Description: The operation couldn’t be completed. File exists
Failure Reason: File exists
Version:
xcode 6.1 (6A1052d)
Yosemitee
Notes:
Configuration:
This error does not occur if IDEBuildOperationMaxNumberOfConcurrentCompileTasks=1 is set when building
Attachments:
'test2.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!