Resource files added to Xcode project refer to the original file not the one copied to the project
| Originator: | ralf.ebert | ||
| Number: | rdar://33233684 | Date Originated: | 2017-07-11 |
| Status: | open | Resolved: | |
| Product: | Xcode | Product Version: | Version 9.0 beta 3 (9M174d) |
| Classification: | Reproducible: | yes |
Steps to Reproduce: 1. Create a new iOS Single View Application project. 2. Create some external resource file f.e. an empty text file 'test.txt' in the Downloads folder 3. Drag it into the Project navigator under the main app group and make sure the option 'Copy items if needed' is checked 4. Check the Location in the File inspector. Expected Results: The file should refer to the project file. Actual Results: The file was copied to the project, but the project refers to the external file instead of the project file. Notes: - This is happening only since Xcode 9. - Workaround: Remove the reference and drag in a reference to the project-file (which is copied to the Xcode project, but not added to the group) - but then, this file is not added to the target and the target needs to be checked manually
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!