git clone --recursive git@github.com:NativeScript/ios-runtime.git
- OS X 10.10.3+
- Xcode 7+
- CMake 3.1.3 - It is available in Homebrew as
homebrew/versions/cmake31
. - llvm 3.8 - used to build the metadata generator submodule. Be sure to have
llvm-config
inPATH
or otherwise export theLLVM_CONFIG_PATH
environment variable to point to the folder that contains it. - Automake - available in Homebrew as
automake
- GNU Libtool - available in Homebrew as
libtool
Run build/scripts/build.sh
in the root of the repository. This will produce a static library and Cocoa Framework versions of the iOS runtime and a build of the metadata generator and place them in the dist
folder. The script depends on the repo's git submodules, so if you run into issues make sure to update them using git submodule update --init
.
mkdir cmake-build && cd cmake-build
cmake .. -G Xcode
To build the npm package run sh build/script/build-runtime.sh
in the root of the repository. This should produce a dist/tns-ios-*.tgz
file, which should contain the NativeScript static library and Cocoa Framework, the NativeScript CLI template project, the API metadata generator and the Web Inspector frontend.
To run the tests build and run the TestRunner target from the generated Xcode project as described above.