Elastos Carrier iOS Framework is swift API wrapper (and Objective-C APIs) for Elastos Native Carrier, where Carrier is a decentralized peer to peer communication framework.
You need to build carrier iOS ndk distributions from the Carrier native repository with following github address.
https://github.com/elastos/Elastos.NET.Carrier.Native.SDK
Finished building iOS NDKs for Carrier, you would have native output libraries 'lipo'ed with serveral CPU architectures supported. Currently, only x86-64 and arm64 CPU architectures are supported.
The output static libraries would be listed under "_dist/lipo" directory in Carrier Native source.
The directory "NativeDistributions" to import native shared libraries and headers should have following directory structure:
NativeDistributions
|--include
|--ela_carrier.h
|--ela_session.h
|--CCarrier.swift
|--CSession.swift
|--libs
|--libcrystal.dylib
|--libelacarrier.dylib
|--libelasession.dylib
The headers under subdirectory "include" are public header files from Carrier native.
After importing dependencies from Carrier native, you need Apple Xcode to open this project and build Carrier iOS SDK.
Use Apple Xcode to generate ElastosCarrier.framework.
To complete.
Run following script command to generate swift APIs docuement with appledoc tool:
$ ./docs.sh
About How to install appledoc, please refer to following github repository:
https://github.com/tomaz/appledoc
To complete
Sincerely thanks to all teams and projects that we relies on directly or indirectly.
We welcome contributions to the Elastos Carrier iOS Project (or Native Project) in many forms.
Elastos Carrier iOS Project source code files are made available under the MIT License, located in the LICENSE file.