Asset catalogs should automatically export auto-completable symbols

Originator:frozendevil
Number:rdar://19934039 Date Originated:2/23/15
Status:Closed as dupe of 9419178 Resolved:
Product:Developer Tools Product Version:
Classification:Enhancement Reproducible:
 
Currently to use the contents of an asset catalog an engineer must map a string in code to the name of the asset in the catalog. This can lead to many issues if, e.g., assets get renamed or a developer simply mistypes the string, since there's no way to verify at compile time that the string references an extant asset. There are third-party tools (https://github.com/square/objc-codegenutils) which export header files filled with constants which serve as a stop-gap solution—it would be nice if Xcode could automatically populate the project's module with constants to minimize dependencies in the build workflow.

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!