简体   繁体   中英

Build Swift 3 in Terminal to create XCode project

It seems Apple changed this line:

swift build -X

This no longer works to create an Xcode project as described here

Doest anyone know the updated way to do this as I cannot find it online Thanks

Now you should use the Swift Package Manager.

To create a project structure:

swift package init --type executable

or

swift package init --type library

To make a project compatible with Xcode:

swift package generate-xcodeproj

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM