How to build a Swift library for iOS using SPM?

May I do this without using Xcode?