iOS Runtime for NativeScript

使用 JavaScriptCore 为 iOS 开发 NativeScript。「NativeScript for iOS using JavaScriptCore」

Github星跟蹤圖

iOS Runtime for NativeScript

Contains the source code for the NativeScript's iOS Runtime. NativeScript is a framework which enables developers to write truly native mobile applications for Android and iOS using JavaScript and CSS. Each mobile platform has its own ecosystem and offers completely different development tools and language(s) - Java for Android and Objective C (Swift) for iOS. In order to translate JavaScript code to the corresponding native APIs some kind of proxy mechanism is needed. This is exactly what the "Runtime" parts of NativeScript are responsible for. The iOS Runtime may be thought of as "The Bridge" between the JavaScript and the iOS world. A NativeScript application for iOS is a standard native package (ipa) which besides the JavaScript files embed the runtime as well.

git clone --recursive git@github.com:NativeScript/ios-runtime.git

Requirements

Architecture Diagram

The NativeScript iOS Runtime architecture can be summarized in the following diagram.

iOS Runtime diagram

For more details on how it works, read the documentation.

Local Development

To be able to open and build {N} iOS Runtime in Xcode you need to configure it for WebKit development and generate the Xcode project files using cmake. To do this execute the following:

sudo ./src/webkit/Tools/Scripts/configure-xcode-for-ios-development
./cmake-gen.sh
open "cmake-build/NativeScript.xcodeproj"

After you open the newly generated project in Xcode you can run the TestRunner target or the Gameraww example app.

For more information on WebKit configuration see Building iOS Port section of WebKit's README

Building a Distribution Package

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.

Contribute

We love PRs! Check out the contributing guidelines. If you want to contribute, but you are not sure where to start - look for issues labeled help wanted.

Get Help

Please, use github issues strictly for reporting bugs or requesting features. For general questions and support, check out Stack Overflow or ask our experts in NativeScript community Slack channel.

主要指標

概覽
名稱與所有者NativeScript/ios-jsc
主編程語言JavaScript
編程語言Shell (語言數: 10)
平台
許可證Apache License 2.0
所有者活动
創建於2015-01-22 11:21:31
推送於2023-01-13 17:56:45
最后一次提交2023-01-13 09:56:45
發布數64
最新版本名稱v6.5.6 (發布於 2022-09-22 11:39:32)
第一版名稱v0.10.0 (發布於 2015-04-22 09:52:27)
用户参与
星數300
關注者數60
派生數59
提交數2.1k
已啟用問題?
問題數630
打開的問題數106
拉請求數609
打開的拉請求數3
關閉的拉請求數50
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?