![]() Click the Add Local button in the sheet to add your package.Click the Add button at the bottom of the package list.Click the Package Dependencies button at the top of the project editor to show a list of Swift packages in the project.Select the project from the left side of the project editor.Select the project file from the left side of the project window to open the project editor. ![]() If you have never added a Swift package to a project in Xcode, take the following steps: Add the Package to Your Xcode ProjectĪfter creating the Swift package you can add it to your project like any other Swift package. I was unable to generate a Swift package for GitHub’s REST API. The CreateAPI GitHub page has a tutorial that contains more detailed instructions.ĬreateAPI is in its early stages of development. Replace PackageName with the name you want for your Swift package. Replace APIFile.json with the name of the file containing the REST API. The name of the JSON file must be in quotes. The following example demonstrates running CreateAPI: The most common way to run CreateAPI is to run the create-api generate command with the -output and -config-option options.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |