SwiftPM Xcode integration doesn't use package names

Originator:jediknil
Number:rdar://FB7539094 Date Originated:2020-01-16
Status:Open Resolved:
Product:Xcode Product Version:11.3.1 (11C504)
Classification:Incorrect/Unexpected Behavior Reproducible:
 
When a SwiftPM executable target has a different product name from its target name, Xcode will use the product name as the module name rather than the target name. This can be a problem if you have an executable target whose product name is the same as a library target’s module name, or differing only in case.

(I’m not sure how it should behave for libraries. Arguably the library name doesn’t have to be the same as the module name either, as long as all the autolinking stuff is worked out.)

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!