Skip to content

scala-network/scala-ios-lib-builder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scala Lib Builder for IOS

Less Privacy Collection; More Privacy Coins; Fully Open Source; Better User Experience

HOW TO BUILD

Install tools and dependencies

You need homebrew installed on your Mac. See https://docs.brew.sh/Installation

Install cmake and lrelease(part of QT), type in your terminal:

$ brew install cmake qt pkg-config

Install zmq.hpp dependency:

$ brew tap bottech/homebrew-outcasts
$ brew install cppzmq

Setting up headers

IOKit

There is no IOKit headers installed for iOS by default. Easiest way to obtain it:

  • clone git repo
$ git clone https://github.com/prathumca/iOS-IOKit-Runtime-Headers.git
  • move to /usr/local/include
$ mv iOS-IOKit-Runtime-Headers /usr/local/include/IOKit

XCode

$ xcode-select --install
$ sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
cd #your Xcode.app#
sudo cp ./Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/vmmeter.h ./Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sys/
sudo cp ./Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/netinet/udp_var.h ./Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/netinet/
sudo cp ./Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/netinet/ip_var.h ./Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/netinet/

Other headers

You need make available for building following headers:

$ mkdir /usr/local/include/sys
$ cp /usr/include/sys/vmmeter.h /usr/local/include/sys
$ mkdir /usr/local/include/netinet
$ cp /usr/include/netinet/{udp_var,ip_var}.h /usr/local/include/netinet

Build Scala

Checkout

$ git clone https://github.com/scala-network/scala-ios-lib.git
$ cd ./scala-ios-lib-builder
$ bash ./build.sh

Thanks To:

  • WooKeyWallet for the fork
  • Bakhtiyor K. in Uzbekistan for helping us during the development process.

Donating

Donation Address (XLA)

@cryptoamity : Ssy2HXpWZ9RhXbb9uNFTeHjaYfexa3suDbGJDSfUWSEpSajSmjQXwLh2xqCAAUQfZrdiRkvpUZvBceT8d6zKc6aV9NaZVYXFsY

License

MIT