Xcode to reference the swift version of PROTOCOLBUF

Source: Internet
Author: User

First find the source file from Git

Click the address below to open the link https://github.com/alexeyxo/protobuf-swift

Of course its seventh step is not very good,

7.ADD ./src/protocolbuffers/protocolbuffers.xcodeproj In your project.

I chose the pod to refer to protocol in the project,

To search the next

Pod Search Protocolbuffers

Then you'll find two, one is OC, one is swift,


Select a second swift version to add to the pod file

This time the error


Add modifications to the pod file


Well, success, the project has, haha ...


But how to quote these libraries, plus "import protocolbuffers".

Enjoy it.

Xcode to reference the swift version of PROTOCOLBUF

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.