Skip to content

nativescript

This is an entirely different approach from cordova (and this phonegap) since cordova used a webview to implement the app, and nativescript uses a run-time to doe that.

To make this list a little more complete :

  • cordova : webview approach
  • react native : uses a run-time with a simulated dom
  • nativescript: actual dom run-time
  • xamarin : no idea but it was mentioned in all the lists .. later

installation

troubleshooting

When the commandline tools complain about this :

xcode-select
xcode-select: error: tool 'xcodebuild' requires Xcode ... 

Comments on the internet suggest that you can safely ignore this error, but i believe it is in the way of several commands that fail.

Therefor run this command as root:

xcode-select
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

After this i seem to be without the error. Also this command now starts up the ios simulator:

tns
1
2
3
tns create HelloWorld --template nativescript-template-tutorial
cd HelloWorld
tns run ios