Asset Catalogs Do Not Appear to Support Symlinks
| Originator: | SlaunchaMan | ||
| Number: | rdar://20292057 | Date Originated: | 25-Mar-2015 11:33 AM |
| Status: | Behaves correctly | Resolved: | |
| Product: | iOS SDK | Product Version: | Xcode Version 6.2 (6C131e) |
| Classification: | Other Bug | Reproducible: | Always |
Summary:
There are times, especially when making WatchKit apps, where I find myself wanting two image sets to reference the same image file (for instance, providing 2x, 38mm, and 42mm versions of an image by symlinking 2x to 38mm). However, based on some testing, it appears that symlinked images are copied multiple times when the Assets.car file is compiled.
Steps to Reproduce:
1. Build the attached sample app.
2. Inspect the built Assets.car file and note its size.
3. Remove the symlinked image set ("toady.jpg")
4. Re-build the app.
5. Inspect the built Assets.car file and note its size.
Expected Results:
The Assets.car files will not have appreciably different sizes, since the image was symlinked to both locations.
Actual Results:
The Assets.car file, in my testing got about 40K smaller.
Version:
Xcode Version 6.2 (6C131e)\
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!