I am using the new open source Swift Package Manager and am able to download the files. I want the manager to create a "development environment" (Through Xcode) based on the packages it retrieved.
我正在使用新的开源Swift包管理器,并能够下载文件。我希望管理员根据所检索的包创建一个“开发环境”(通过Xcode)。
Has anybody dealt with this?
有人处理过吗?
2 个解决方案
#1
19
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-manager项目的PR #174,存在一个在包的根目录中生成Xcode项目文件的选项:
$ 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!
它将正式成为Swift 3.0版的一部分。但是Xcode Swift开发快照(2016-03-24或以后)已经可以使用了!
#2
6
You can generate Xcode project files with this command:
您可以使用以下命令生成Xcode项目文件:
swift package generate-xcodeproj
#1
19
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-manager项目的PR #174,存在一个在包的根目录中生成Xcode项目文件的选项:
$ 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!
它将正式成为Swift 3.0版的一部分。但是Xcode Swift开发快照(2016-03-24或以后)已经可以使用了!
#2
6
You can generate Xcode project files with this command:
您可以使用以下命令生成Xcode项目文件:
swift package generate-xcodeproj