Skip to content

juslee/fabric-sdk-swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyperledger Fabric Client SDK for Swift

Building

swift build -Xlinker -lz

Generate protobuf code

Build SwiftProtobuf

swift package update
cd Packages
cd SwiftProtobuf-<version>
swift build
cp .build/debug/protoc-gen-swift /usr/local/bin
cd ../../

Compile the protos

Scripts/compile_protos.sh

The generated protobuf code will be located at Sources/Protos.

Take note that orderer/configuration.proto has been renamed to orderer/orderer_configuration.proto and peer/configuration.proto to peer/peer_configuration.proto due to swift package naming conflicts.