Add language dropdown for static libraries in Xcode 9 beta 4

Originator:keithbsmiley
Number:rdar://33506016 Date Originated:24-Jul-2017 22:53
Status:Resolved Resolved:Xcode 9.3 beta 1
Product:Developer Tools Product Version:Xcode 9 beta 4
Classification:UI/Usability Reproducible:Always
 
Summary:
Now that static libraries with Swift targets are supported as part of Xcode 9 beta 4, it would be nice if there was a language dropdown when adding a new static library target where you could select Swift.

Steps to Reproduce:
1. Create a new static library project
2. Attempt to create it starting with Swift sources

Expected Results:
You can choose Swift from a language dropdown like other targets

Actual Results:
You can only create Objective-C targets and you must delete the Objective-C files and add your own Swift files

Version:
Xcode 9 beta 4

Notes:

Comments

I'm assuming that a .swiftmodule file gets created at some point during the build process. This would mean that you could import that module and use things that are defined as public.

Note, I have not tried this myself, but that's how it works with Dynamic frameworks, and I'd assume that a .swiftmodule file is created, just not put inside of a .framework when doing a static library.

Correct. Drop down should be there.

One question: Have you tried creating static lib using swift code? How to make the Swift classes public in static library so that my app can access those classes?


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!