Tag: Swift

  • Getting started Protocol Buffers in Swift

    Getting started Protocol Buffers in Swift

    In this post, trial the Protocol Buffer on Swift. Introduction If you want to use Protocol Buffer in Swift, try the swift-protobuf. Usage and references are here: https://github.com/apple/swift-protobuf https://github.com/apple/swift-protobuf/blob/main/Documentation/API.md https://github.com/apple/swift-protobuf/blob/main/Documentation/PLUGIN.md Easy to use swift-protobuf is a Swift Package, so you can add it with Xcode. As an example BookInfo.proto, write the data definition in a file. A…

  • Create a Swift Package and publish it to GitHub

    Create a Swift Package and publish it to GitHub

    Introduction To describe building and publishing your swift package in this post. Try to make Swift Package and publish it on GitHub. My environment is as follows: Creat Swift package project In Xcode 12, User can create a swift package project on the one. Click File > New > Swift Package… of Xcode’s menu. Enter Ctrl + Shift + Command +…

  • Use Swift Package with Xcode

    Use Swift Package with Xcode

    Introduction Since Xcode 11, we can add or remove Swift Package by GUI operation. Apple guide you in Xcode 11 Release Notes as follows: The existing package managers CocoaPods and Carthage are the mainstream, but Xcode has supported Swift Package Manager, it seems that the overtaking stance will be spurred. How to use Adding a Swift Package in Xcode is easy.…