coremlc generate generates closed Swift source, not suitable for Frameworks

Originator:kaipi
Number:rdar://48851150 Date Originated:19/03/13
Status:Open Resolved:
Product:CoreML Product Version:
Classification: Reproducible:
 
The coremlc generate tool generates Swift sources which do not have the public visibility attributes set. This makes it harder to include the generated sources in Frameworks to share them across apps and extensions, since they are not public and therefore not accessible from the app or extension targets.

Could the coremlc generate tool generate public declarations instead? Or at least be configurable to generate public declarations? This would avoid the need for SwiftSyntax tools or wrapper classes to access these symbols from the framework.

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!