When using Swift Package Manager how can I generate an Xcode project file for development

2 Solutions Collect From Internet About “When using Swift Package Manager how can I generate an Xcode project file for development”

As of PR #174 on the swift-package-manager project, there exists an option for generating an Xcode project file in root directory of the package:

$ swift package generate-xcodeproj

Note: Earlier builds used:

$ swift build --generate-xcodeproj

It will officially be part of Swift’s 3.0 release.
But it is already available with Xcode Swift DEVELOPMENT Snapshot 2016-03-24 or later!

You can generate Xcode project files with this command:

swift package generate-xcodeproj