CoreCityOS framework is designed as an CityOS open-source data format standard in the new IOT world.
Swift Package Manager
Swift Package Manager is currently only available for OSX and Linux apps. To build CoreCityOS with Swift Package Manager add it like dependency inside your
import PackageDescription // Example Package.swift file let package = Package ( name: "CityOS", dependencies: [ .Package(url: "https://github.com/cityos/CoreCityOS.git", majorVersion: 1), ] )
After dependency is added to the
Package.swift, run following to compile and build the framework:
$ swift build
You can use Carthage to install
CoreCityOS by adding following to your
github "cityos/CoreCityOS" ~> 0.0.1
After that run following to build framework:
$ carthage update
Note that you can pass
--platformoption to the
carthage, if you want to build framework only for one platform. Supported Carthage platforms are iOS, OSX and tvOS.
First add CoreCityOS to your project root folder as a submodule
$ git submodule add https://github.com/cityos/CoreCityOS.git
After that drag
CoreCityOS.xcodeproj to your project and add it to Linked Frameworks and Libraries in your target settings.
After you have added CoreCityOS by any of the supported methods you can import it with import statement: