git clone --recursive [email protected]:NativeScript/ios-runtime.git
- OS X 10.11+
- Xcode 8+
- CMake 3.1.3 - Make sure to install the command line tools from the menu.
- llvm 3.9 - used to build the metadata generator submodule. Be sure to have the folder containing
llvm-config
inPATH
or make a symlink to in/usr/local/bin/
. - Automake - available in Homebrew as
automake
. - GNU Libtool - available in Homebrew as
libtool
. - Checkout all git submodules using
git submodule update --init
.
Execute the following commands:
mkdir "cmake-build" && cd "cmake-build"
cmake .. -G "Xcode"
open "NativeScript.xcodeproj"
After you open the newly generated project in Xcode you can run the TestRunner
target or the Gameraww
example app.
To build the tns-ios
npm package run ./build/scripts/package-tns-ios.sh
in the root of the repository. The package contains the NativeScript Cocoa Framework, the NativeScript CLI template project and the API metadata generator.
To build the tns-ios-inspector
npm package run ./build/scripts/package-tns-ios-inspector.sh
in the root of the repository. The package contains the Web Inspector frontend.